public override void RefreshFixture(RealFixture pFixture) { foreach (Fixture fix in mSubFixture) { fix.RefreshFixture(pFixture); } }
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); } }
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++; } }
public abstract void RefreshFixture(RealFixture pFixture);
void workspaceTree1_OnRealFixtureSelected(DmxFramework.Fixtures.RealFixture pFixture) { HideAll(); this.fixtureConfCtrl1.Visible = true; this.fixtureConfCtrl1.SetFixture(pFixture); }