개정판 9d5b4bc2
auto Update 기능 추가
Change-Id: I195d4506bd1dd9cfd58dbdeada74e89a1b9d307e
KCOM/Views/MainMenu.xaml.cs | ||
---|---|---|
509 | 509 |
private void DownloadOriginalFile() |
510 | 510 |
{ |
511 | 511 |
#region 임시파일 다운로드 |
512 |
instnaceFile = System.IO.Path.Combine(System.IO.Path.GetTempPath(), "MARKUS", System.IO.Path.GetRandomFileName().Replace(".pdf", ".tmp"));
|
|
512 |
instnaceFile = System.IO.Path.Combine(System.IO.Path.GetTempPath(), "MARKUS", System.IO.Path.GetRandomFileName().Split('.')[0] + ".pdf");
|
|
513 | 513 |
downloadurl = GetOriginalPDFURL(); |
514 |
|
|
515 |
string endpoint = App.ViewInfo.DocumentItemID + "file"; |
|
514 |
|
|
515 |
ViewerDataModel.Instance.OriginalTempFile = instnaceFile; |
|
516 |
|
|
517 |
string endpoint = Common.Commons.shortGuid() + "file"; |
|
516 | 518 |
IIpc.WcfServer wcfServer = new IIpc.WcfServer(endpoint); |
517 | 519 |
wcfServer.IpcFileDownloadReceived += WcfServer_IpcFileDownloadReceived; |
518 | 520 |
wcfServer.Start(); |
519 |
|
|
521 |
|
|
520 | 522 |
DownloadProcess.FileDownloader(endpoint, ViewerDataModel.Instance.IsAdmin, downloadurl, instnaceFile); |
521 | 523 |
#endregion |
522 | 524 |
} |
... | ... | |
532 | 534 |
{ |
533 | 535 |
ViewerDataModel.Instance.SystemMain.dzMainMenu.searchPanel_Instance.SetSerachPDFFile(instnaceFile); |
534 | 536 |
ViewerDataModel.Instance.IsDownloadOriginal = true; |
535 |
ViewerDataModel.Instance.OriginalTempFile = instnaceFile; |
|
537 |
|
|
536 | 538 |
} |
537 | 539 |
} |
538 | 540 |
|
내보내기 Unified diff