개정판 bb7fc600
issue #000: img download 시 try catch 추가.
Change-Id: I9c8520b5c431586bb52ce82f226282b2923d1fb1
KCOM/Views/MainMenu.xaml.cs | ||
---|---|---|
557 | 557 |
#region 페이지 이미지 로딩 수정 |
558 | 558 |
|
559 | 559 |
// ViewerDataModel.Instance.ImageViewPath = await ImageSourceHelper.GetDownloadImageAsync(pageUri, pageWidth * contentScale, pageHeight * contentScale); |
560 |
try |
|
561 |
{ |
|
562 |
ViewerDataModel.Instance.ImageViewPath = await ImageSourceHelper.GetDownloadImageAsync(pageUri, pageWidth, pageHeight); |
|
563 |
ScaleImage(pageWidth, pageHeight); |
|
560 | 564 |
|
561 |
ViewerDataModel.Instance.ImageViewPath = await ImageSourceHelper.GetDownloadImageAsync(pageUri, pageWidth, pageHeight); |
|
562 |
ScaleImage(pageWidth,pageHeight); |
|
563 |
|
|
564 |
ViewerDataModel.Instance.ImageViewWidth = pageWidth; |
|
565 |
ViewerDataModel.Instance.ImageViewHeight = pageHeight; |
|
565 |
ViewerDataModel.Instance.ImageViewWidth = pageWidth; |
|
566 |
ViewerDataModel.Instance.ImageViewHeight = pageHeight; |
|
566 | 567 |
|
567 |
zoomAndPanCanvas.Width = pageWidth; |
|
568 |
zoomAndPanCanvas.Height = pageHeight; |
|
568 |
zoomAndPanCanvas.Width = pageWidth;
|
|
569 |
zoomAndPanCanvas.Height = pageHeight;
|
|
569 | 570 |
|
570 |
Common.ViewerDataModel.Instance.ContentWidth = pageWidth; |
|
571 |
Common.ViewerDataModel.Instance.ContentHeight = pageHeight; |
|
571 |
Common.ViewerDataModel.Instance.ContentWidth = pageWidth;
|
|
572 |
Common.ViewerDataModel.Instance.ContentHeight = pageHeight;
|
|
572 | 573 |
|
573 |
inkBoard.Width = pageWidth; |
|
574 |
inkBoard.Height = pageHeight; |
|
574 |
inkBoard.Width = pageWidth; |
|
575 |
inkBoard.Height = pageHeight; |
|
576 |
} |
|
577 |
catch (Exception) |
|
578 |
{ |
|
579 |
throw; |
|
580 |
} |
|
581 |
|
|
575 | 582 |
|
576 | 583 |
#endregion |
577 | 584 |
|
내보내기 Unified diff