Esempio n. 1
0
 private void AttachImageFromPath(string file)
 {
     try
     {
         AttachedImage = new ImageDescriptionViewModel(file);
     }
     catch (Exception ex)
     {
         ShowImageAttachErrorMessage(ex);
         AttachedImage = null;
     }
 }
Esempio n. 2
0
 private bool AttachImageFromPath(string file)
 {
     try
     {
         AttachedImage = new ImageDescriptionViewModel(file);
         return(true);
     }
     catch (Exception ex)
     {
         ShowImageAttachErrorMessage(ex);
         AttachedImage = null;
         return(false);
     }
 }
Esempio n. 3
0
 public void DetachImage()
 {
     AttachedImage = null;
 }
Esempio n. 4
0
 private void AttachImageFromPath(string file)
 {
     try
     {
         AttachedImage = new ImageDescriptionViewModel(file);
     }
     catch (Exception ex)
     {
         ShowImageAttachErrorMessage(ex);
         AttachedImage = null;
     }
 }
Esempio n. 5
0
 public void DetachImage()
 {
     AttachedImage = null;
 }
Esempio n. 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;
     }
 }
Esempio n. 7
0
 private bool AttachImageFromPath(string file)
 {
     try
     {
         AttachedImage = new ImageDescriptionViewModel(file);
         return true;
     }
     catch (Exception ex)
     {
         ShowImageAttachErrorMessage(ex);
         AttachedImage = null;
         return false;
     }
 }