public void Threshold2ConstructsProperly() { Threshold2 t = new Threshold2(40, 50); Assert.Equal(40.0, t.Transition, 1); Assert.Equal(50.0, t.Transition2, 1); }
public void Threshold2HandlesBadOrderProperly() { // Make sure the thresholds are properly swapped Threshold2 t = new Threshold2(-200, -400); Assert.Equal(-400.0, t.Transition, 1); Assert.Equal(-200.0, t.Transition2, 1); }
private void SavebtnMouseOver() { if ((SectionName == EmptyField || SectionName.Trim().ToString() == string.Empty) || (DisplayName == EmptyField || DisplayName.Trim().ToString() == string.Empty) || (StatisticsName == EmptyField || StatisticsName.Trim().ToString() == string.Empty) || (TooltipValue == EmptyField || TooltipValue.Trim().ToString() == string.Empty) || (Threshold1 == EmptyField || Threshold1.Trim().ToString() == string.Empty) || (Threshold2 == EmptyField || Threshold2.Trim().ToString() == string.Empty) || (Threshold1 == DecimalFormat || Threshold1.Trim().ToString() == string.Empty) || (Threshold2 == DecimalFormat || Threshold2.Trim().ToString() == string.Empty) || (Threshold1 == TimeFormat || Threshold1.Trim().ToString() == string.Empty) || (Threshold2 == TimeFormat || Threshold2.Trim().ToString() == string.Empty) || (Threshold1 == ThresholdMessage1 || Threshold1.Trim().ToString() == string.Empty) || (Threshold2 == ThresholdMessage2 || Threshold2.Trim().ToString() == string.Empty)) { IsSavebtnEnable = false; } else { IsSavebtnEnable = true; } }
private void TextChangedEvent() { if ((SectionName == EmptyField || SectionName.Trim().ToString() == string.Empty) || (DisplayName == EmptyField || DisplayName.Trim().ToString() == string.Empty) || (StatisticsName == EmptyField || StatisticsName.Trim().ToString() == string.Empty) || (TooltipValue == EmptyField || TooltipValue.Trim().ToString() == string.Empty) || (Threshold1 == EmptyField || Threshold1.Trim().ToString() == string.Empty) || (Threshold2 == EmptyField || Threshold2.Trim().ToString() == string.Empty) || (Threshold1 == DecimalFormat || Threshold1.Trim().ToString() == string.Empty) || (Threshold2 == DecimalFormat || Threshold2.Trim().ToString() == string.Empty) || (Threshold1 == TimeFormat || Threshold1.Trim().ToString() == string.Empty) || (Threshold2 == TimeFormat || Threshold2.Trim().ToString() == string.Empty) || (Threshold1 == ThresholdMessage1 || Threshold1.Trim().ToString() == string.Empty) || (Threshold2 == ThresholdMessage2 || Threshold2.Trim().ToString() == string.Empty)) { IsSavebtnEnable = false; } else { IsSavebtnEnable = true; } Settings.GetInstance().TValue1 = Threshold1; Settings.GetInstance().TValue2 = Threshold2; }
public override int GetHashCode() { return(Threshold1.GetHashCode() ^ Threshold2.GetHashCode() ^ L2Graident.GetHashCode() ^ Aperture.GetHashCode()); }