private void btn_lightson_Click(object sender, EventArgs e) { Lights lights = new Lights(); if (btn_t8ready.BackColor == Color.Green) { lights.t8roomon(); lights.t8spotson(); t8banddone.BackgroundImage = ((System.Drawing.Image)(SwitcherPanelCSharp.Properties.Resources.buttongreen)); } if (btn_t9ready.BackColor == Color.Green) { lights.t9roomon(); lights.t9spotson(); t9banddone.BackgroundImage = ((System.Drawing.Image)(SwitcherPanelCSharp.Properties.Resources.buttongreen)); } if (btn_t10ready.BackColor == Color.Green) { lights.t10roomon(); lights.t10spotson(); t10banddone.BackgroundImage = ((System.Drawing.Image)(SwitcherPanelCSharp.Properties.Resources.buttongreen)); } }
private void btn_talk_Click(object sender, EventArgs e) { me1_key2.SetInputFill(4); reactivatebuttons(); Lights lights = new Lights(); btn_talk.Enabled = false; m_AUX1.SetInputSource(16); m_AUX2.SetInputSource(16); m_AUX3.SetInputSource(1); m_mixEffectBlock1.SetInt(_BMDSwitcherMixEffectBlockPropertyId.bmdSwitcherMixEffectBlockPropertyIdPreviewInput, 6); me1_key1.SetOnAir(1); m_mixEffectBlock1.PerformAutoTransition(); lights.t10roomon(); lights.t10spotson(); lights.t9roomoff(); lights.t9spotsoff(); lights.t8roomoff(); lights.t8spotsoff(); t10banddone.BackgroundImage = ((System.Drawing.Image)(SwitcherPanelCSharp.Properties.Resources.buttongreen)); t9banddone.BackgroundImage = ((System.Drawing.Image)(SwitcherPanelCSharp.Properties.Resources.buttonred)); t8banddone.BackgroundImage = ((System.Drawing.Image)(SwitcherPanelCSharp.Properties.Resources.buttonred)); }