개정판 97cde7e3
issue #660: SmartUpdate 수정
Change-Id: Ie4469cf5493423fe0bd367623860cd96e92b9574
KCOM/MainWindow.xaml.cs | ||
---|---|---|
402 | 402 |
{ |
403 | 403 |
string url = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetVersionData(Environment.Is64BitProcess, Assembly.GetExecutingAssembly().GetName().Version.ToString()); |
404 | 404 |
if (!string.IsNullOrEmpty(url)) |
405 |
{ |
|
406 |
var box = new TextBlock(); |
|
407 |
box.MinWidth = 400; |
|
408 |
box.FontSize = 11; |
|
409 |
box.Text = "새로운 버전이 있습니다. \n업데이트 하시겠습니까?"; |
|
410 |
box.TextWrapping = System.Windows.TextWrapping.Wrap; |
|
405 |
{ |
|
411 | 406 |
DialogParameters parameters = new DialogParameters() |
412 | 407 |
{ |
413 | 408 |
Owner = Application.Current.MainWindow, |
414 |
Content = box, |
|
409 |
Content = new TextBlock() |
|
410 |
{ |
|
411 |
MinWidth = 400, |
|
412 |
FontSize = 11, |
|
413 |
Text = "새로운 버전이 있습니다. \n업데이트 하시겠습니까?", |
|
414 |
TextWrapping = System.Windows.TextWrapping.Wrap |
|
415 |
}, |
|
415 | 416 |
Header = "Confirm", |
416 | 417 |
Theme = new VisualStudio2013Theme(), |
417 | 418 |
ModalBackground = new SolidColorBrush { Color = Colors.Black, Opacity = 0.6 }, |
... | ... | |
419 | 420 |
{ |
420 | 421 |
if (e.DialogResult == true) |
421 | 422 |
{ |
423 |
ProcessStartInfo proInfo = new ProcessStartInfo(); |
|
424 |
var FileName = AppDomain.CurrentDomain.BaseDirectory + "SmartUpdate.exe"; |
|
425 |
Process.Start(FileName, url); |
|
426 |
this.Close(); |
|
427 |
|
|
428 |
/* |
|
422 | 429 |
Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, new Action(delegate |
423 | 430 |
{ |
424 | 431 |
destfilepath = System.IO.Path.Combine(TempFile.TempFolder, System.IO.Path.GetFileName(url)); |
... | ... | |
431 | 438 |
client.DownloadFileCompleted += new AsyncCompletedEventHandler(Client_DownloadFileCompleted); |
432 | 439 |
client.DownloadFileAsync(new Uri(url), destfilepath); |
433 | 440 |
})); |
434 |
|
|
435 |
}else |
|
441 |
*/ |
|
442 |
} |
|
443 |
else |
|
436 | 444 |
{ |
437 | 445 |
isUpdateCheck = true; |
438 | 446 |
} |
439 | 447 |
} |
440 | 448 |
}; |
441 |
RadWindow.Confirm(parameters); |
|
449 |
RadWindow.Confirm(parameters); |
|
450 |
|
|
442 | 451 |
} |
443 | 452 |
else |
444 | 453 |
{ |
내보내기 Unified diff