private void advancedDmxConsoleToolStripMenuItem_Click(object sender, EventArgs e) { Fixture fix = (Fixture)mSelectedNode.Tag; //protection if (fix.Channels == null || fix.Channels.Count == 0) { return; } Forms.AdvancedForm dlg = new AdvancedForm(fix); dlg.DockPanel = this.DockPanel; dlg.DockState = WeifenLuo.WinFormsUI.Docking.DockState.Float; dlg.Show(); }
private void treeView1_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e) { mSelectedNode = e.Node; Fixture fix = (Fixture)mSelectedNode.Tag; //protection if (fix.Channels == null || fix.Channels.Count == 0) { return; } Forms.AdvancedForm dlg = new AdvancedForm(fix); dlg.DockPanel = this.DockPanel; dlg.DockState = WeifenLuo.WinFormsUI.Docking.DockState.Float; dlg.Show(); }