Example #1
0
		public MessageEditorService([NotNull] MessageForm form)
		{
			if (form == null)
				throw new ArgumentNullException(nameof(form));

			_form = form;
			_form.Modified+= EditorModified;
			_form.IsModifiedChanged += EditorIsModifiedChanged;
		}
Example #2
0
		private void EditorIsModifiedChanged(MessageForm sender)
		{
			IsModifiedChanged?.Invoke(this);
		}
Example #3
0
		private void EditorModified(MessageForm sender)
		{
			Modified?.Invoke(this);
		}
Example #4
0
 private void EditorModified(MessageForm sender)
 {
     if (Modified != null)
         Modified(this);
 }
Example #5
0
 private void EditorIsModifiedChanged(MessageForm sender)
 {
     if (IsModifiedChanged != null)
         IsModifiedChanged(this);
 }