I want to write an event for everytime the property below is call. I want to validate the property range everytime either property is called you some an event. I want to remember the last state of the member.? Min = 30.0 and Max = 50
public double Temp{ get; set; }
public double Wavelenght{ get; set; }
Can some send me a tutorial or assist men.
Loading
VulpesPosted Jan 25, 2012, 5:14 PM
Notice that initially Temp and WaveLength both have their default values of 0. No exception is thrown if an attempt is made to set a property to an out of range value - the attempt is simply ignored:
VulpesPosted Jan 25, 2012, 4:41 PM
If it's the latter then you can implement the INotifyPropertyChanged interface which is useful for data binding. See:
http://msdn.microsoft.com/en-us/library/system.componentmodel.inotifypropertychanged.aspx