bool FanValueOffFunc(HMIBooleanBase sender, double value) { if (value == 2 || value == 5) { return(true); } else { return(false); } }
bool ValueOnFunc(HMIBooleanBase sender, double value) { if (-300 < value && value < 0) { return(true); } else { return(false); } }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/WebControl;component/Controls/HMILabelBoolean.xaml", System.UriKind.Relative)); this.HMITemp = ((WebControl.HMIBooleanBase)(this.FindName("HMITemp"))); this.tbToolTip = ((System.Windows.Controls.TextBlock)(this.FindName("tbToolTip"))); this.MouseStateGroup = ((System.Windows.VisualStateGroup)(this.FindName("MouseStateGroup"))); this.ControlMouseEnter = ((System.Windows.VisualState)(this.FindName("ControlMouseEnter"))); this.ControlMouseLeave = ((System.Windows.VisualState)(this.FindName("ControlMouseLeave"))); this.ValueStateGroup = ((System.Windows.VisualStateGroup)(this.FindName("ValueStateGroup"))); this.ControlValueON = ((System.Windows.VisualState)(this.FindName("ControlValueON"))); this.ControlValueOFF = ((System.Windows.VisualState)(this.FindName("ControlValueOFF"))); this.ControlValueUnknown = ((System.Windows.VisualState)(this.FindName("ControlValueUnknown"))); this.ActualStateGroup = ((System.Windows.VisualStateGroup)(this.FindName("ActualStateGroup"))); this.ControlActualTrue = ((System.Windows.VisualState)(this.FindName("ControlActualTrue"))); this.ControlActualFalse = ((System.Windows.VisualState)(this.FindName("ControlActualFalse"))); this.recMouse = ((System.Windows.Shapes.Rectangle)(this.FindName("recMouse"))); this.txtCaption = ((System.Windows.Controls.TextBlock)(this.FindName("txtCaption"))); this.vwWarning = ((System.Windows.Controls.Viewbox)(this.FindName("vwWarning"))); }