示例#1
0
 public void SetAppendValue(int value)
 {
     if (OnAppendValueChange != null)
     {
         var args = new ValueChanageEventArgs(AppendValue, value, value);
         OnAppendValueChange(this, args);
         AppendValue = args.FinalValue;
         OnValueChange(this, new EventArgs());
     }
     else
     {
         AppendValue = value;
     }
 }
示例#2
0
 public void SetRate(int value)
 {
     if (OnRateChange != null)
     {
         var args = new ValueChanageEventArgs(Rate, value, value);
         OnRateChange(this, args);
         Rate = args.FinalValue;
         OnValueChange(this, new EventArgs());
     }
     else
     {
         Rate = value;
     }
 }
示例#3
0
 public void SetBaseValue(int value)
 {
     if (OnBaseValueChange != null)
     {
         var args = new ValueChanageEventArgs(BaseValue, value, value);
         OnBaseValueChange(this, args);
         BaseValue = args.FinalValue;
         OnValueChange(this, new EventArgs());
     }
     else
     {
         BaseValue = value;
     }
 }