private void AttachImage() { if (this.CurrentInputDescription.AttachedImage != null) { this.CurrentInputDescription.AttachedImage = null; } else { var ofm = new Livet.Messaging.IO.OpeningFileSelectionMessage("OpenFile"); ofm.Filter = "画像ファイル|*.jpg; *.png; *.gif; *.bmp|すべてのファイル|*.*"; ofm.Title = "添付する画像を選択"; var ret = this.Messenger.GetResponse(ofm); if (ret.Response != null) { AttachImage(ret.Response); } } }
private void AttachImage() { if (this.CurrentInputDescription.AttachedImage != null) { this.CurrentInputDescription.AttachedImage = null; } else { var ofm = new Livet.Messaging.IO.OpeningFileSelectionMessage("OpenFile"); ofm.Filter = "画像ファイル|*.jpg; *.png; *.gif; *.bmp|すべてのファイル|*.*"; ofm.Title = "添付する画像を選択"; var ret = this.Messenger.GetResponse(ofm); if (ret.Response != null) { this.CurrentInputDescription.AttachedImage = ret.Response; } } }