public void OnSaved(WpfConfiguration configurationControl) { var config = configurationControl as PhidgetDigitalOutputConfig; index = config.Index; outputType = config.OutputType; }
protected override void OnLoadDefaults() { index = 0; outputType = DigitalOutputType.Toggle; portName = ""; this.phrase = string.Empty; this.settings = new SerialSettings(9600, Parity.Even, StopBits.One, 8); }
public PhidgetDigitalOutputConfig(int index, DigitalOutputType outputType) { Index = index; OutputType = outputType; InitializeComponent(); }
public void OnSaved(WpfConfiguration ConfigurationControl) { var config = ConfigurationControl as ArduinoDigitalOutputConfig; index = config.Index; outputType = config.OutputType; port = config.Port; portName = config.PortName; }
public MSP430DigitalOutputConfig(int index, DigitalOutputType outputType, string port, string portName) { OutputType = outputType; Index = index; Port = port; PortName = portName; CanSave = true; InitializeComponent(); }
public override void OnSave() { Index = OutputBox.SelectedIndex; ComboBoxItem item = ControlBox.SelectedItem as ComboBoxItem; switch (item.Content.ToString()) { case "Toggle": OutputType = DigitalOutputType.Toggle; break; case "Turn On": OutputType = DigitalOutputType.On; break; case "Turn Off": OutputType = DigitalOutputType.Off; break; } }
protected override void OnLoadDefaults() { index = 0; outputType = DigitalOutputType.Toggle; }
internal DigitalOutput(RexDevice rex, DigitalOutputType type, int index) { this.Rex = rex; this.Type = type; this.Index = index; }