Esempio n. 1
0
        private void AddVirtualStripMenuItem1_Click(object sender, EventArgs e)
        {
            VirtualFixture fix = (VirtualFixture)mSelectedNode.Tag;


            VirtualFixture NewFixture = new VirtualFixture("New Virtual Fixture");

            fix.AddFixture(NewFixture);
            mSelectedNode.Nodes.Add(LoadFixture(NewFixture));
        }
Esempio n. 2
0
        private void addToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Dialog.AddRealFixture dlg = new DmxCreator.Dialog.AddRealFixture();
            if (dlg.ShowDialog(this) == DialogResult.Cancel)
            {
                return;
            }

            if (dlg.Fixture == null)
            {
                return;
            }



            dlg.Fixture.Name = dlg.Fixture.LightName;
            //foreach(DmxFramework.Channels.ch

            VirtualFixture fix = (VirtualFixture)mSelectedNode.Tag;

            fix.AddFixture(dlg.Fixture);
            mSelectedNode.Nodes.Add(LoadFixture(dlg.Fixture));
            //DialogResult res =
        }