public void SetFare(double f) { ValueChangeEventArg arg = new ValueChangeEventArg(fare, f); fare = f; FareChangeEvent(this, arg); }
static void OnValueChange(object sender, ValueChangeEventArg args) { Console.WriteLine("old value is {0}, new value is {1}", args.getOldValue(), args.getNewValue()); }