private void CopyValues()
 {
     try
     {
         _bipLight = new BIPLight();
         _bipLight.BIPLedPosition = (BIPLedPositionEnum)ComboBoxPosition.SelectedValue;
         _bipLight.LEDColor       = (PanelLEDColor)ComboBoxColor.SelectedValue;
         _bipLight.DelayBefore    = (BIPLightDelays)ComboBoxDelay.SelectedValue;
         _bipLight.Hash           = (string)ComboBoxBIPPanel.SelectedValue;
     }
     catch (Exception e)
     {
         throw new Exception("1003351 Error in CopyValues() : " + e.Message);
     }
 }
 private void ShowLED()
 {
     try
     {
         _bipLight = new BIPLight();
         _bipLight.BIPLedPosition = (BIPLedPositionEnum)ComboBoxPosition.SelectedValue;
         _bipLight.LEDColor       = (PanelLEDColor)ComboBoxColor.SelectedValue;
         _bipLight.DelayBefore    = (BIPLightDelays)ComboBoxDelay.SelectedValue;
         _bipLight.Hash           = (string)ComboBoxBIPPanel.SelectedValue;
         BipFactory.SetDark(_bipLight.Hash);
         BipFactory.ShowLight(_bipLight);
     }
     catch (Exception ex)
     {
         Common.ShowErrorMessageBox(10906, ex);
     }
 }
예제 #3
0
 private void CopyValues()
 {
     try
     {
         _bipLight = new BIPLight
         {
             BIPLedPosition = (BIPLedPositionEnum)ComboBoxPosition.SelectedValue,
             LEDColor       = (PanelLEDColor)ComboBoxColor.SelectedValue,
             DelayBefore    = (BIPLightDelays)ComboBoxDelay.SelectedValue,
             BindingHash    = (string)ComboBoxBIPPanel.SelectedValue
         };
     }
     catch (Exception ex)
     {
         throw new Exception($"1003351 Error in CopyValues() : {ex.Message}");
     }
 }
 private void ClearAll()
 {
     _bipLight = null;
 }
 public BipLightWindow(BIPLight bipLight, string description)
 {
     InitializeComponent();
     _description = description;
     _bipLight    = bipLight;
 }