private void listViewMain_MouseDoubleClick(object o,EventArgs e) { if (this.listViewMain.SelectedItems.Count == 0) return; EditNote ei = new EditNote(listNotes[listViewMain.FocusedItem.Index]); ei.ShowDialog(this); updata_ListView(); }
private void btn_Add_Click(object sender, EventArgs e) { EditNote ed = new EditNote(null); ed.ShowDialog(this); updata_ListView(); }