private void btn_NewNote_Click(object sender, EventArgs e) { Note new_note = new Note(); NewNote note_page = new NewNote(service, new_note); note_page.Show(); }
private void iconButton2_Click(object sender, EventArgs e) { Note new_note = new Note(); NewNote note_page = new NewNote(service, new_note); note_page.Show(); this.Visible = false; }
private void notes_list_MouseDoubleClick_1(object sender, MouseEventArgs e) { int index = this.notes_list.IndexFromPoint(e.Location); if (index != System.Windows.Forms.ListBox.NoMatches) { NewNote edit_note = new NewNote(service, service.notes[index]); edit_note.Show(); this.Close(); } }