private void добавитьНовуюВеткуToolStripMenuItem1_Click(object sender, EventArgs e) { Properties.Settings.Default.path = null; Properties.Settings.Default.edit = false; AddItem ai = new AddItem(); ai.ShowDialog(); GetTree(); }
private void добавитьВТекущуюВеткуToolStripMenuItem1_Click(object sender, EventArgs e) { string Path = null; TreeNode node = treeViewData.SelectedNode; while (node != null) { Path = node.Text + "/" + Path; node = node.Parent; } Properties.Settings.Default.path = Path; Properties.Settings.Default.edit = false; AddItem ai = new AddItem(); ai.ShowDialog(); GetTree(); }
private void изменитьToolStripMenuItem_Click(object sender, EventArgs e) { string Path = null; TreeNode node = treeViewData.SelectedNode; while (node != null) { Path = node.Text + "/" + Path; node = node.Parent; } Properties.Settings.Default.path = Path; Properties.Settings.Default.edit = true; Properties.Settings.Default.id = idNow; AddItem ai = new AddItem(); ai.ShowDialog(); GetTree(); }