Example #1
0
        public void NewPLC()
        {
            NewPLC add = new NewPLC();

            if (add.ShowDialog() == DialogResult.OK)
            {
                LoadTree();
            }
        }
Example #2
0
        private void změnitToolStripMenuItem_Click(object sender, EventArgs e)
        {
            NewPLC edit = new NewPLC();

            edit.Edit = true;
            edit.ID   = Convert.ToInt32(treeView1.SelectedNode.Tag);
            if (edit.ShowDialog() == DialogResult.OK)
            {
                LoadTree();
            }
        }