示例#1
0
        public void Threshold2ConstructsProperly()
        {
            Threshold2 t = new Threshold2(40, 50);

            Assert.Equal(40.0, t.Transition, 1);
            Assert.Equal(50.0, t.Transition2, 1);
        }
示例#2
0
        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);
        }
示例#3
0
 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;
     }
 }
示例#4
0
 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;
 }
示例#5
0
 public override int GetHashCode()
 {
     return(Threshold1.GetHashCode() ^ Threshold2.GetHashCode() ^ L2Graident.GetHashCode() ^ Aperture.GetHashCode());
 }