/// <summary> /// Initializes a new instance of the EnableDisableViewModel class. /// </summary> public EnableDisablePluginViewModel() { Outputs = new ObservableCollection<OutputSignalViewModel>(); TypeName = "Enable/Disable Signal"; EnableSignal = new InputSignalViewModel("Enable", InstanceName); Messenger.Default.Register<Messages.Signal>(this, (msg) => { isEnabled = msg.Value > 0.5 ? true : false; }); Inputs = new ObservableCollection<InputSignalViewModel>(); }
/// <summary> /// Initializes a new instance of the EnableDisableViewModel class. /// </summary> public EnableDisablePluginViewModel() { Outputs = new ObservableCollection <OutputSignalViewModel>(); TypeName = "Enable/Disable Signal"; EnableSignal = new InputSignalViewModel("Enable", InstanceName); Messenger.Default.Register <Messages.Signal>(this, (msg) => { isEnabled = msg.Value > 0.5 ? true : false; }); Inputs = new ObservableCollection <InputSignalViewModel>(); }