private void transformToolStripMenuItem_Click(object sender, EventArgs e) { SelectStat = -1; TreeNode t = treeView1.SelectedNode; if (t != null && t.Parent != null) { TreeNode t2 = t.Parent; if (t2.Text == "Static Meshes") { SelectStat = t.Index; } } if (SelectStat == -1) { return; } Lvl_Transform l = new Lvl_Transform(); l.refO = this; l.refStat = SelectStat; treeView1.Enabled = false; l.ShowDialog(); }
private void transformToolStripMenuItem_Click(object sender, EventArgs e) { SelectStat = -1; TreeNode t = treeView1.SelectedNode; if (t != null && t.Parent != null) { TreeNode t2 = t.Parent; if (t2.Text == "Static Meshes") SelectStat = t.Index; } if (SelectStat == -1) return; Lvl_Transform l = new Lvl_Transform(); l.refO = this; l.refStat = SelectStat; treeView1.Enabled = false; l.ShowDialog(); }