private void AddNoteF(object sender, EventArgs e) { _SelectedFolderId = (int)sender; var m = new AskNameForm(); m.Question = "Введите название"; m.Show(); m.OK += AddNoteF_OK; }
private void Rename(object sender, EventArgs e) { if (treeView1.SelectedNode != null) { var n = new AskNameForm(); n.Question = "Переименовать"; n.Show(); n.OK += RenameNF; } }
private void RenameF(object sender, EventArgs e) { _SelectedNoteId = null; _SelectedFolderId = (int)sender; var n = new AskNameForm(); n.Question = "Переименовать"; n.Show(); n.OK += RenameNF; }
private void AddFolderP(object sender, EventArgs e) { var m = new AskNameForm(); m.Question = "Введите название"; m.Show(); m.OK += q; void q(string s) { AddFolder(s, 0); UpdateNotes(); } }