private void btnNewNote_Click(object sender, EventArgs e) { frmNewNote newNote = new frmNewNote(currentUser, null); newNote.ShowDialog(); FillList(); }
private void btnUpdate_Click(object sender, EventArgs e) { if (lstNotes.SelectedIndex < 0) { MessageBox.Show("Bir not seçin"); return; } Guid noteID = (Guid)lstNotes.SelectedValue; frmNewNote frm = new frmNewNote(currentUser, noteID); frm.ShowDialog(); FillList(); }