Ejemplo n.º 1
0
 public override void RefreshFixture(RealFixture pFixture)
 {
     foreach (Fixture fix in mSubFixture)
     {
         fix.RefreshFixture(pFixture);
     }
 }
Ejemplo n.º 2
0
 void fixtureTree1_OnRealFixtureSelected(DmxFramework.Fixtures.RealFixture pFixture)
 {
     try
     {
         HideAll();
         this.fixtureCtrl1.SetRealFixture(pFixture);
         this.fixtureCtrl1.Visible = true;
     }
     catch (Exception ex)
     {
         MessageBox.Show(this, "Please Retry", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
         LogException(ex);
     }
 }
Ejemplo n.º 3
0
        public override void RefreshFixture(RealFixture pFixture)
        {
            int  i     = 0;
            bool found = false;

            if (pFixture.LightConstructor != this.mLightConstructor || pFixture.LightName != this.mLightName)
            {
                return;
            }

            foreach (DmxFramework.Channels.RealChannel ThisChan in this.Channels)
            {
                found = false;
                foreach (DmxFramework.Channels.RealChannel pChan in pFixture.Channels)
                {
                    if (ThisChan.Name == pChan.Name)
                    {
                        ThisChan.RefreshChannel(pChan);
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    //here, no chan found. destroy channel ...
                    this.Channels.Remove(ThisChan);
                }
            }
            i = 0;
            foreach (DmxFramework.Channels.RealChannel pChan in pFixture.Channels)
            {
                found = false;
                foreach (DmxFramework.Channels.RealChannel ThisChan in this.Channels)
                {
                    if (ThisChan.Name == pChan.Name)
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    //here, no chan found. add channel ...
                    this.Channels.Insert(i, pChan);
                }
                i++;
            }
        }
Ejemplo n.º 4
0
 public abstract void RefreshFixture(RealFixture pFixture);
Ejemplo n.º 5
0
 void workspaceTree1_OnRealFixtureSelected(DmxFramework.Fixtures.RealFixture pFixture)
 {
     HideAll();
     this.fixtureConfCtrl1.Visible = true;
     this.fixtureConfCtrl1.SetFixture(pFixture);
 }