ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/Win32/libWin32/Win32/UI/ValueChangedEventArgs.cs
Revision: 287
Committed: Tue Jun 5 08:52:07 2012 UTC (10 years, 8 months ago) by william
File size: 837 byte(s)
Log Message:

File Contents

# Content
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5
6 namespace System.Windows.Forms
7 {
8 public interface IValueChangedEventArgs
9 {
10 object OldValue { get; }
11 object NewValue { get; }
12 }
13 public class ValueChangedEventArgs: EventArgs, IValueChangedEventArgs
14 {
15 public ValueChangedEventArgs() : this(0) { }
16 public ValueChangedEventArgs(object oldvalue) : this(oldvalue, oldvalue) { }
17 public ValueChangedEventArgs(object oldvalue, object newvalue)
18 {
19 this.OldValue = oldvalue;
20 this.NewValue = newvalue;
21 }
22 #region IValueChangedEventArgs members
23 public object OldValue { get; private set; }
24 public object NewValue { get; private set; }
25 #endregion
26 }
27 }