public void NewPLC() { NewPLC add = new NewPLC(); if (add.ShowDialog() == DialogResult.OK) { LoadTree(); } }
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(); } }