コード例 #1
0
 public DCSBiosOutputFormulaWindow(DCSAirframe dcsAirframe, string description, DCSBIOSOutputFormula dcsBiosOutputFormula)
 {
     InitializeComponent();
     _dcsAirframe          = dcsAirframe;
     _description          = description;
     _dcsbiosOutputFormula = dcsBiosOutputFormula;
     DCSBIOSControlLocator.LoadControls();
     _dcsbiosControls = DCSBIOSControlLocator.GetIntegerOutputControls();
 }
コード例 #2
0
 public DCSBiosOutputWindow(string description, bool userEditsDescription = false)
 {
     InitializeComponent();
     _description          = description;
     _userEditsDescription = userEditsDescription;
     _dcsBiosOutput        = new DCSBIOSOutput();
     DCSBIOSControlLocator.LoadControls();
     _dcsbiosControls = DCSBIOSControlLocator.GetIntegerOutputControls();
 }
 public DCSBiosOutputTriggerWindow(string description, bool showCriteria = true)
 {
     InitializeComponent();
     _showCriteria  = showCriteria;
     _description   = description;
     _dcsBiosOutput = new DCSBIOSOutput();
     DCSBIOSControlLocator.LoadControls();
     _dcsbiosControls = DCSBIOSControlLocator.GetIntegerOutputControls();
 }
コード例 #4
0
 public DCSBiosInputWindow()
 {
     InitializeComponent();
     DCSBIOSControlLocator.LoadControls();
     _dcsbiosControls = DCSBIOSControlLocator.GetInputControls();
     foreach (var dcsbiosControl in _dcsbiosControls)
     {
         Debug.Print(dcsbiosControl.identifier);
     }
 }
コード例 #5
0
        public JaceSandboxWindow()
        {
            BIOSEventHandler.AttachDataListener(this);
            DCSBIOSControlLocator.LoadControls();
            _dcsbiosControls = DCSBIOSControlLocator.GetIntegerOutputControls();
            var thread = new Thread(ThreadLoop);

            thread.Start();
            InitializeComponent();
        }
コード例 #6
0
        public StreamDeckDCSBIOSDecoderWindow(DCSBIOSDecoder dcsbiosDecoder, StreamDeckPanel streamDeckPanel)
        {
            InitializeComponent();
            _dcsbiosDecoder = dcsbiosDecoder;
            DCSBIOSControlLocator.LoadControls();
            _dcsbiosControls = DCSBIOSControlLocator.GetIntegerOutputControls();
            _streamDeckPanel = streamDeckPanel;

            BIOSEventHandler.AttachDataListener(this);
        }
コード例 #7
0
        public JaceSandboxWindow(DCSBIOS dcsbios)
        {
            _dcsbios = dcsbios;
            _dcsbios.AttachDataReceivedListener(this);
            DCSBIOSControlLocator.LoadControls();
            _dcsbiosControls = DCSBIOSControlLocator.GetIntegerOutputControls();
            var thread = new Thread(ThreadLoop);

            thread.Start();
            InitializeComponent();
        }
コード例 #8
0
 public DCSBiosOutputTriggerWindow(DCSAirframe dcsAirframe, string description, DCSBIOSOutput dcsBiosOutput, bool showCriteria = true)
 {
     InitializeComponent();
     _showCriteria  = showCriteria;
     _dcsAirframe   = dcsAirframe;
     _description   = description;
     _dcsBiosOutput = dcsBiosOutput;
     DCSBIOSControlLocator.LoadControls();
     _dcsbiosControl  = DCSBIOSControlLocator.GetControl(_dcsBiosOutput.ControlId);
     _dcsbiosControls = DCSBIOSControlLocator.GetIntegerOutputControls();
 }
コード例 #9
0
        public StreamDeckDCSBIOSDecoderWindow(DCSBIOSDecoder dcsbiosDecoder, StreamDeckPanel streamDeckPanel)
        {
            InitializeComponent();
            _dcsbiosDecoder = dcsbiosDecoder;
            DCSBIOSControlLocator.LoadControls();
            _dcsbiosControls = DCSBIOSControlLocator.GetIntegerOutputControls();
            _streamDeckPanel = streamDeckPanel;
            var thread = new Thread(ThreadLoop);

            thread.Start();
        }
コード例 #10
0
 public DCSBiosOutputFormulaWindow(DCSAirframe dcsAirframe, string description, DCSBIOSOutput dcsBiosOutput, bool userEditsDescription = false)
 {
     InitializeComponent();
     _dcsAirframe          = dcsAirframe;
     _description          = description;
     _userEditsDescription = userEditsDescription;
     _dcsBiosOutput        = dcsBiosOutput;
     DCSBIOSControlLocator.LoadControls();
     _dcsbiosControl  = DCSBIOSControlLocator.GetControl(_dcsBiosOutput.ControlId);
     _dcsbiosControls = DCSBIOSControlLocator.GetIntegerOutputControls();
 }
 public DCSBiosOutputFormulaWindow(string description, bool userEditsDescription = false, bool showDecimalSetting = false)
 {
     InitializeComponent();
     _description          = description;
     _userEditsDescription = userEditsDescription;
     _showDecimalSetting   = showDecimalSetting;
     _dcsBiosOutput        = new DCSBIOSOutput();
     DCSBIOSControlLocator.LoadControls();
     _dcsbiosControls = DCSBIOSControlLocator.GetIntegerOutputControls();
     BIOSEventHandler.AttachDataListener(this);
 }
        public StreamDeckDCSBIOSDecoderWindow(string streamDeckInstanceId, EnumStreamDeckButtonNames streamDeckButton)
        {
            InitializeComponent();
            _dcsbiosDecoder = new DCSBIOSDecoder();
            _dcsbiosDecoder.SetEssentials(streamDeckInstanceId, streamDeckButton);
            LoadDefaults();
            DCSBIOSControlLocator.LoadControls();
            _dcsbiosControls = DCSBIOSControlLocator.GetIntegerOutputControls();
            _dcsbiosDecoder.StreamDeckButtonName = streamDeckButton;
            _streamDeckInstanceId = streamDeckInstanceId;
            var thread = new Thread(ThreadLoop);

            thread.Start();
        }
 public DCSBiosOutputFormulaWindow(string description, DCSBIOSOutput dcsBiosOutput, bool limitDecimals, int decimalPlaces, bool userEditsDescription = false, bool showDecimalSetting = false)
 {
     InitializeComponent();
     _description          = description;
     _userEditsDescription = userEditsDescription;
     _showDecimalSetting   = showDecimalSetting;
     _dcsBiosOutput        = dcsBiosOutput;
     _limitDecimals        = limitDecimals;
     _decimalPlaces        = decimalPlaces;
     DCSBIOSControlLocator.LoadControls();
     _dcsbiosControl  = DCSBIOSControlLocator.GetControl(_dcsBiosOutput.ControlId);
     _dcsbiosControls = DCSBIOSControlLocator.GetIntegerOutputControls();
     BIOSEventHandler.AttachDataListener(this);
 }
コード例 #14
0
 public StreamDeckDCSBIOSDecoderWindow(StreamDeckPanel streamDeckPanel)
 {
     InitializeComponent();
     _streamDeckPanel = streamDeckPanel;
     _dcsbiosDecoder  = new DCSBIOSDecoder
     {
         DecoderSourceType       = DCSBiosOutputType.IntegerType,
         StreamDeckPanelInstance = streamDeckPanel,
         StreamDeckButtonName    = streamDeckPanel.SelectedButtonName
     };
     LoadDefaults();
     DCSBIOSControlLocator.LoadControls();
     _dcsbiosControls = DCSBIOSControlLocator.GetIntegerOutputControls();
     BIOSEventHandler.AttachDataListener(this);
 }
コード例 #15
0
        public StreamDeckDCSBIOSDecoderWindow(string panelHash)
        {
            InitializeComponent();
            _dcsbiosDecoder = new DCSBIOSDecoder();
            _dcsbiosDecoder.DecoderSourceType = DCSBiosOutputType.INTEGER_TYPE;
            _dcsbiosDecoder.PanelHash         = panelHash;
            LoadDefaults();
            DCSBIOSControlLocator.LoadControls();
            _dcsbiosControls = DCSBIOSControlLocator.GetIntegerOutputControls();
            _dcsbiosDecoder.StreamDeckButtonName = StreamDeckPanel.GetInstance(panelHash).SelectedButtonName;
            _panelHash = panelHash;
            var thread = new Thread(ThreadLoop);

            thread.Start();
        }
コード例 #16
0
 public DCSBiosInputWindow()
 {
     InitializeComponent();
     DCSBIOSControlLocator.LoadControls();
     _dcsbiosControls = DCSBIOSControlLocator.GetInputControls();
 }