private void NoteForm_PerformNewNote(object sender, PerformNewNoteEventArgs e) { PerformNewNoteEventArgs args = new PerformNewNoteEventArgs() { ColorStr = e.ColorStr }; OnPerformNewNote(args); }
private void newNoteBtn_Click(object sender, EventArgs e) { PerformNewNoteEventArgs args = new PerformNewNoteEventArgs() { ColorStr = this.colorStr }; OnPerformNewNote(args); }
private void Note_PerformNewNote(object sender, PerformNewNoteEventArgs e) { noteManager.NewNote(fm.GenerateUniqueID()); }
protected virtual void OnPerformNewNote(PerformNewNoteEventArgs e) { PerformNewNote?.Invoke(this, e); }