상속: Livet.ViewModel
예제 #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;
     }
 }