示例#1
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;
     }
 }
示例#2
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;
 }