개정판 9d5b4bc2
auto Update 기능 추가
Change-Id: I195d4506bd1dd9cfd58dbdeada74e89a1b9d307e
KCOM/MainWindow.xaml.cs | ||
---|---|---|
49 | 49 |
App.splashString(ISplashMessage.MAINWINDOW); |
50 | 50 |
this.Loaded += MainWindow_Loaded; |
51 | 51 |
this.Unloaded += MainWindow_Unloaded; |
52 |
this.Closing += MainWindow_Closing; |
|
53 | 52 |
//this.PreviewKeyDown += new KeyEventHandler(KeyEventDownAction); |
54 | 53 |
this.Activated += MainWindow_Activated; |
55 | 54 |
} |
56 | 55 |
|
57 |
private void MainWindow_Closing(object sender, CancelEventArgs e) |
|
58 |
{ |
|
59 |
DownloadProcess.ProcessKill(); |
|
60 |
} |
|
56 |
|
|
61 | 57 |
|
62 | 58 |
private void MainWindow_Activated(object sender, EventArgs e) |
63 | 59 |
{ |
... | ... | |
236 | 232 |
SaveCheck(); |
237 | 233 |
|
238 | 234 |
//Update Check 를 통해 update url 을 Get 하고 결과값이 있을 경우에는 SmartUpdater 실행. |
239 |
KeyValuePair<bool, string> updatecheck = UpdateCheck(); |
|
240 |
if (updatecheck.Key && !string.IsNullOrEmpty(updatecheck.Value)) |
|
241 |
{ |
|
242 |
CallUpdateProcess(updatecheck.Value); |
|
243 |
} |
|
235 |
//KeyValuePair<bool, string> updatecheck = UpdateCheck();
|
|
236 |
//if (updatecheck.Key && !string.IsNullOrEmpty(updatecheck.Value))
|
|
237 |
//{
|
|
238 |
// CallUpdateProcess(updatecheck.Value);
|
|
239 |
//}
|
|
244 | 240 |
} |
245 | 241 |
|
246 | 242 |
private void SaveCheck() |
내보내기 Unified diff