프로젝트

일반

사용자정보

개정판 0c997b99

ID0c997b99e00207f7ea0b32f3fb37e91aef1ef4f6
상위 a3a13763
하위 d71ee575

이지연이(가) 약 6년 전에 추가함

issue #681 markus client 로딩 속도 개선

차이점 보기:

KCOM/Controls/SearchPanel.xaml.cs
1 1
using MarkupToPDF.Common;
2 2
using System;
3 3
using System.Collections.Generic;
4
using System.Diagnostics;
4 5
using System.Linq;
5 6
using System.Text;
6 7
using System.Windows;
......
33 34

  
34 35
        public SearchPanel()
35 36
        {
36
            InitializeComponent();
37
            //InitializeComponent();
37 38
            this.Loaded += SearchPanel_Loaded;
38
            btnSearch.Click += BtnSearch_Click;
39
            btnSearchPDFDownload.Click += BtnSearchPDFDownload_Click;
40
            SearchSet = new System.Collections.ObjectModel.ObservableCollection<SearchText>();
41
            extractor = new Bytescout.PDFExtractor.TextExtractor(RegistrationName, RegistrationKey);
42
            tbSearch.KeyDown += tbSearch_KeyDown;
43
            this.DataContext = this;
39
            
44 40
        }
45 41

  
46 42
        private void tbSearch_KeyDown(object sender, KeyEventArgs e)
......
53 49

  
54 50
        private void SearchPanel_Loaded(object sender, RoutedEventArgs e)
55 51
        {
52
            //측정
53
            //Stopwatch sw = new Stopwatch();
54
            //sw.Start();
55
            InitializeComponent();
56
            //System.Diagnostics.Debug.WriteLine("SearchPanel() : " + sw.ElapsedMilliseconds.ToString() + "ms");
57

  
58
            btnSearch.Click += BtnSearch_Click;
59
            btnSearchPDFDownload.Click += BtnSearchPDFDownload_Click;
60
            SearchSet = new System.Collections.ObjectModel.ObservableCollection<SearchText>();
61
            extractor = new Bytescout.PDFExtractor.TextExtractor(RegistrationName, RegistrationKey);
62
            tbSearch.KeyDown += tbSearch_KeyDown;
63
            this.DataContext = this;
64

  
65
            /*
56 66
            if (Common.ViewerDataModel.Instance.searchPDF ==null)
57 67
            {
58 68

  
......
62 72
                border_Overlap.Visibility = Visibility.Collapsed;
63 73
                tbSearch.Focus();
64 74
                
65
            }            
75
            }
76
            */
77

  
78
            if (Common.ViewerDataModel.Instance.searchPDF != null)
79
            {
80
                border_Overlap.Visibility = Visibility.Collapsed;
81
                tbSearch.Focus();
82
            }
66 83
        }
67 84

  
68 85
        private void BtnSearchPDFDownload_Click(object sender, RoutedEventArgs e)

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)