예제 #1
0
        public override DcsOutputAndColorBinding CreateDcsOutputAndColorBinding(SaitekPanelLEDPosition saitekPanelLEDPosition, PanelLEDColor panelLEDColor, DCSBIOSOutput dcsBiosOutput)
        {
            var dcsOutputAndColorBinding = new DcsOutputAndColorBindingBIP();

            dcsOutputAndColorBinding.DCSBiosOutputLED  = dcsBiosOutput;
            dcsOutputAndColorBinding.LEDColor          = panelLEDColor;
            dcsOutputAndColorBinding.SaitekLEDPosition = saitekPanelLEDPosition;
            return(dcsOutputAndColorBinding);
        }
예제 #2
0
 public override void ImportSettings(List <string> settings)
 {
     ClearSettings();
     if (settings == null || settings.Count == 0)
     {
         return;
     }
     foreach (var setting in settings)
     {
         if (!setting.StartsWith("#") && setting.Length > 2 && setting.Contains(InstanceId) && setting.StartsWith("PanelBIP{"))
         {
             var colorOutput = new DcsOutputAndColorBindingBIP();
             colorOutput.ImportSettings(setting);
             _listColorOutputBinding.Add(colorOutput);
         }
     }
     OnSettingsApplied();
 }