public static void OpenNote(object sender, EventArgs e) { var note = (NoteDTO)((ToolStripMenuItem)sender).Tag; var win = new EditNote(new Notes(), note); win.ShowDialog(); }
public void NewNote() { var win = new EditNote(this, new NoteDTO()); win.ShowDialog(); }