示例#1
0
        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();
        }
示例#2
0
        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();
        }
示例#3
0
        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();
        }