private void AttachImageFromPath(string file) { try { AttachedImage = new ImageDescriptionViewModel(file); } catch (Exception ex) { ShowImageAttachErrorMessage(ex); AttachedImage = null; } }
private bool AttachImageFromPath(string file) { try { AttachedImage = new ImageDescriptionViewModel(file); return(true); } catch (Exception ex) { ShowImageAttachErrorMessage(ex); AttachedImage = null; return(false); } }
public void DetachImage() { AttachedImage = null; }
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; } }
private bool AttachImageFromPath(string file) { try { AttachedImage = new ImageDescriptionViewModel(file); return true; } catch (Exception ex) { ShowImageAttachErrorMessage(ex); AttachedImage = null; return false; } }