示例#1
0
 private void AttachImageFromPath(string file)
 {
     try
     {
         AttachedImage = new ImageDescriptionViewModel(file);
     }
     catch (Exception ex)
     {
         ShowImageAttachErrorMessage(ex);
         AttachedImage = null;
     }
 }
示例#2
0
 private bool AttachImageFromPath(string file)
 {
     try
     {
         AttachedImage = new ImageDescriptionViewModel(file);
         return(true);
     }
     catch (Exception ex)
     {
         ShowImageAttachErrorMessage(ex);
         AttachedImage = null;
         return(false);
     }
 }
示例#3
0
 public void DetachImage()
 {
     AttachedImage = null;
 }
示例#4
0
 private void AttachImageFromPath(string file)
 {
     try
     {
         AttachedImage = new ImageDescriptionViewModel(file);
     }
     catch (Exception ex)
     {
         ShowImageAttachErrorMessage(ex);
         AttachedImage = null;
     }
 }
示例#5
0
 public void DetachImage()
 {
     AttachedImage = null;
 }
示例#6
0
 private bool AttachImageFromPath(string file)
 {
     try
     {
         AttachedImage = new ImageDescriptionViewModel(file);
         return true;
     }
     catch (Exception ex)
     {
         _parent.Messenger.Raise(new TaskDialogMessage(new TaskDialogOptions
         {
             Title = "画像読み込みエラー",
             MainIcon = VistaTaskDialogIcon.Error,
             MainInstruction = "画像の添付ができませんでした。",
             Content = "画像の読み込み時にエラーが発生しました。" + Environment.NewLine +
                       "未対応の画像か、データが破損しています。",
             ExpandedInfo = ex.ToString(),
             CommonButtons = TaskDialogCommonButtons.Close,
         }));
         AttachedImage = null;
         return false;
     }
 }
示例#7
0
 private bool AttachImageFromPath(string file)
 {
     try
     {
         AttachedImage = new ImageDescriptionViewModel(file);
         return true;
     }
     catch (Exception ex)
     {
         ShowImageAttachErrorMessage(ex);
         AttachedImage = null;
         return false;
     }
 }