public MessageEditorService([NotNull] MessageForm form) { if (form == null) throw new ArgumentNullException(nameof(form)); _form = form; _form.Modified+= EditorModified; _form.IsModifiedChanged += EditorIsModifiedChanged; }
private void EditorIsModifiedChanged(MessageForm sender) { IsModifiedChanged?.Invoke(this); }
private void EditorModified(MessageForm sender) { Modified?.Invoke(this); }
private void EditorModified(MessageForm sender) { if (Modified != null) Modified(this); }
private void EditorIsModifiedChanged(MessageForm sender) { if (IsModifiedChanged != null) IsModifiedChanged(this); }