개정판 0c997b99
issue #681 markus client 로딩 속도 개선
KCOM/Controls/FavoritePanel.xaml.cs | ||
---|---|---|
16 | 16 |
using System.Net; |
17 | 17 |
using KCOM.Common; |
18 | 18 |
using KCOMDataModel.DataModel; |
19 |
using System.Diagnostics; |
|
19 | 20 |
|
20 | 21 |
namespace KCOM.Controls |
21 | 22 |
{ |
... | ... | |
27 | 28 |
new bool IsLoaded = false; |
28 | 29 |
public FavoritePanel() |
29 | 30 |
{ |
30 |
InitializeComponent(); |
|
31 |
//InitializeComponent();
|
|
31 | 32 |
this.Loaded += FavoritePanel_Loaded; |
32 | 33 |
|
33 | 34 |
} |
34 | 35 |
|
35 | 36 |
private void FavoritePanel_Loaded(object sender, RoutedEventArgs e) |
36 |
{ |
|
37 |
{ |
|
38 |
//측정 |
|
39 |
//Stopwatch sw = new Stopwatch(); |
|
40 |
//sw.Start(); |
|
41 |
InitializeComponent(); |
|
42 |
//System.Diagnostics.Debug.WriteLine("FavoritePanel() : " + sw.ElapsedMilliseconds.ToString() + "ms"); |
|
37 | 43 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetFavoriteVPCompleted += BaseClient_GetFavoriteVPCompleted; |
38 | 44 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.EditFavoriteVPCompleted += BaseClient_EditFavoriteVPCompleted; |
39 | 45 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.DeleteMarkupCompleted += BaseClient_DeleteMarkupCompleted; |
... | ... | |
52 | 58 |
|
53 | 59 |
IsLoaded = true; |
54 | 60 |
} |
55 |
|
|
61 |
|
|
56 | 62 |
} |
57 | 63 |
|
58 | 64 |
private void BaseClient_DeleteMarkupCompleted(object sender, ServiceDeepView.DeleteMarkupCompletedEventArgs e) |
KCOM/Controls/Sample.xaml.cs | ||
---|---|---|
5 | 5 |
using System.Collections.Generic; |
6 | 6 |
using System.Collections.ObjectModel; |
7 | 7 |
using System.ComponentModel; |
8 |
using System.Diagnostics; |
|
8 | 9 |
using System.Linq; |
9 | 10 |
using System.Windows; |
10 | 11 |
using System.Windows.Controls; |
... | ... | |
22 | 23 |
public event PropertyChangedEventHandler PropertyChanged; |
23 | 24 |
public Sample() |
24 | 25 |
{ |
26 |
//InitializeComponent(); |
|
27 |
this.Loaded += Sample_Loaded; |
|
28 |
//_Initialize = true; |
|
29 |
|
|
30 |
//lstSelectComment.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(lstSelectComment_SelectionChanged); |
|
31 |
//ImgListbox.MouseDoubleClick += ImgListbox_MouseDoubleClick; |
|
32 |
} |
|
33 |
|
|
34 |
private void Sample_Loaded(object sender, RoutedEventArgs e) |
|
35 |
{ |
|
36 |
//측정 |
|
37 |
//Stopwatch sw = new Stopwatch(); |
|
38 |
//sw.Start(); |
|
25 | 39 |
InitializeComponent(); |
40 |
//System.Diagnostics.Debug.WriteLine("Sample() : " + sw.ElapsedMilliseconds.ToString() + "ms"); |
|
41 |
|
|
26 | 42 |
_Initialize = true; |
27 |
|
|
28 | 43 |
lstSelectComment.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(lstSelectComment_SelectionChanged); |
29 |
//ImgListbox.MouseDoubleClick += ImgListbox_MouseDoubleClick; |
|
44 |
|
|
30 | 45 |
} |
31 | 46 |
|
32 | 47 |
//private void ImgListbox_MouseDoubleClick(object sender, MouseButtonEventArgs e) |
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) |
KCOM/Events/Event_KeyEvent.cs | ||
---|---|---|
9 | 9 |
using System.Windows.Controls; |
10 | 10 |
using System.Windows.Input; |
11 | 11 |
using Telerik.Windows.Controls; |
12 |
using static KCOM.Views.MainMenu; |
|
12 |
//using static KCOM.Views.MainMenu;
|
|
13 | 13 |
|
14 | 14 |
namespace KCOM |
15 | 15 |
{ |
... | ... | |
19 | 19 |
|
20 | 20 |
public MarkupToPDF.Common.Undo_data UndoData; |
21 | 21 |
|
22 |
//20181108 |
|
22 | 23 |
//강인구 추가 |
23 |
KCOM.Views.MainMenu mainMenu = new Views.MainMenu(); |
|
24 |
//KCOM.Views.MainMenu mainMenu = new Views.MainMenu(); |
|
25 |
|
|
24 | 26 |
//강인구 추가 |
25 | 27 |
MarkupToPDF.Controls.Parsing.LayerControl layer = new MarkupToPDF.Controls.Parsing.LayerControl(); |
26 | 28 |
//강인구 추가 |
KCOM/MainWindow.xaml.cs | ||
---|---|---|
28 | 28 |
|
29 | 29 |
public MainWindow() |
30 | 30 |
{ |
31 |
InitializeComponent(); |
|
31 |
//InitializeComponent();
|
|
32 | 32 |
this.Loaded += MainWindow_Loaded; |
33 | 33 |
this.KeyDown += new KeyEventHandler(KeyEventDownAction); |
34 | 34 |
this.KeyUp += new KeyEventHandler(KeyEventUpAction); |
... | ... | |
53 | 53 |
|
54 | 54 |
private void MainWindow_Loaded(object sender, RoutedEventArgs e) |
55 | 55 |
{ |
56 |
InitializeComponent(); |
|
56 | 57 |
double screenWidth = System.Windows.SystemParameters.PrimaryScreenWidth; |
57 | 58 |
double screenHeight = System.Windows.SystemParameters.PrimaryScreenHeight; |
58 | 59 |
//this.Width += 40; |
KCOM/Messenger/ConversationView.xaml.cs | ||
---|---|---|
2 | 2 |
using System; |
3 | 3 |
using System.Collections.Generic; |
4 | 4 |
using System.ComponentModel; |
5 |
using System.Diagnostics; |
|
5 | 6 |
using System.Linq; |
6 | 7 |
using System.Text; |
7 | 8 |
using System.Windows; |
... | ... | |
26 | 27 |
|
27 | 28 |
public ConversationView() |
28 | 29 |
{ |
29 |
InitializeComponent(); |
|
30 |
//InitializeComponent(); |
|
31 |
|
|
30 | 32 |
this.DataContext = this; |
31 | 33 |
this.Loaded += ConversationView_Loaded; |
32 |
btnMark.MouseLeftButtonDown += BtnMark_Click; |
|
33 |
btnMail.MouseLeftButtonDown += BtnMail_Click; |
|
34 |
btnFile.MouseLeftButtonDown += BtnFile_Click; |
|
35 |
//강인구 추가 |
|
36 |
btnSend.PreviewMouseLeftButtonDown += BtnSend_Click; |
|
34 |
|
|
37 | 35 |
} |
38 | 36 |
|
39 | 37 |
private void BtnMark_Click(object sender, RoutedEventArgs e) |
... | ... | |
135 | 133 |
|
136 | 134 |
private void ConversationView_Loaded(object sender, RoutedEventArgs e) |
137 | 135 |
{ |
136 |
//측정 |
|
137 |
//Stopwatch sw = new Stopwatch(); |
|
138 |
//sw.Start(); |
|
139 |
InitializeComponent(); |
|
140 |
//System.Diagnostics.Debug.WriteLine("ConversationView() : " + sw.ElapsedMilliseconds.ToString() + "ms"); |
|
141 |
|
|
142 |
btnMark.MouseLeftButtonDown += BtnMark_Click; |
|
143 |
btnMail.MouseLeftButtonDown += BtnMail_Click; |
|
144 |
btnFile.MouseLeftButtonDown += BtnFile_Click; |
|
145 |
//강인구 추가 |
|
146 |
btnSend.PreviewMouseLeftButtonDown += BtnSend_Click; |
|
147 |
|
|
138 | 148 |
main = this.ParentOfType<MainWindow>(); |
139 | 149 |
if (App.ParameterMode) |
140 | 150 |
{ |
KCOM/Views/MainMenu.xaml.cs | ||
---|---|---|
228 | 228 |
|
229 | 229 |
public MainMenu() |
230 | 230 |
{ |
231 |
InitializeComponent();
|
|
232 |
this.Loaded += MainMenu_Loaded;
|
|
231 |
//InitializeComponent();
|
|
232 |
this.Loaded += MainMenu_Loaded; |
|
233 | 233 |
} |
234 | 234 |
|
235 | 235 |
public class TempDt |
... | ... | |
366 | 366 |
private static Timer timer; |
367 | 367 |
private int InitInterval = KCOM.Properties.Settings.Default.InitInterval; |
368 | 368 |
private void MainMenu_Loaded(object sender, RoutedEventArgs e) |
369 |
{ |
|
369 |
{ |
|
370 |
////측정 |
|
371 |
//Stopwatch sw = new Stopwatch(); |
|
372 |
//sw.Start(); |
|
373 |
InitializeComponent(); |
|
374 |
//System.Diagnostics.Debug.WriteLine("MainMenu() : " + sw.ElapsedMilliseconds.ToString() + "ms"); |
|
375 |
|
|
370 | 376 |
if (App.ParameterMode) |
371 | 377 |
{ |
372 | 378 |
this.pageNavigator.PageChanging += pageNavigator_PageChanging; |
내보내기 Unified diff