2 // System.Windows.Forms.PropertyTabChangedEventArgs
\r
5 // stubbed out by Jaak Simm (jaaksimm@firm.ee)
\r
6 // Dennis Hayes (dennish@Raytek.com)
\r
7 // Gianandrea Terzi (gianandrea.terzi@lario.com)
\r
9 // (C) Ximian, Inc., 2002
\r
12 using System.Runtime.InteropServices;
\r
13 using System.Windows.Forms.Design;
\r
15 namespace System.Windows.Forms {
\r
18 /// Provides data for the PropertyTabChanged event of a PropertyGrid.
\r
21 /// - nothing is implemented
\r
26 public class PropertyTabChangedEventArgs : EventArgs {
\r
30 private PropertyTab oldtab;
\r
31 private PropertyTab newtab;
\r
36 //[ComVisible(true)]
\r
37 public PropertyTabChangedEventArgs(PropertyTab oldTab, PropertyTab newTab){
\r
39 this.oldtab = oldTab;
\r
40 this.newtab = newTab;
\r
45 #region Public Properties
\r
48 public PropertyTab NewTab {
\r
55 public PropertyTab OldTab {
\r
62 #region Public Methods
\r
65 /// Equality Operator
\r
69 /// Compares two PropertyTabChangedEventArgs objects.
\r
70 /// The return value is based on the equivalence of
\r
71 /// oldtab and newtab Property
\r
72 /// of the two PropertyTabChangedEventArgs.
\r
74 public static bool operator == (PropertyTabChangedEventArgs PropertyTabChangedEventArgsA, PropertyTabChangedEventArgs PropertyTabChangedEventArgsB)
\r
76 return (PropertyTabChangedEventArgsA.NewTab == PropertyTabChangedEventArgsB.NewTab) && (PropertyTabChangedEventArgsA.OldTab == PropertyTabChangedEventArgsB.OldTab);
\r
80 /// Inequality Operator
\r
84 /// Compares two PropertyValueChangedEventArgs objects.
\r
85 /// The return value is based on the equivalence of
\r
86 /// ChangedItem and OldValue Property
\r
87 /// of the two PropertyValueChangedEventArgs.
\r
89 public static bool operator != (PropertyTabChangedEventArgs PropertyTabChangedEventArgsA, PropertyTabChangedEventArgs PropertyTabChangedEventArgsB)
\r
91 return (PropertyTabChangedEventArgsA.NewTab != PropertyTabChangedEventArgsB.NewTab) || (PropertyTabChangedEventArgsA.OldTab != PropertyTabChangedEventArgsB.OldTab);
\r
99 /// Checks equivalence of this
\r
100 /// PropertyTabChangedEventArgs and another
\r
103 public override bool Equals (object obj)
\r
105 if (!(obj is PropertyTabChangedEventArgs))return false;
\r
106 return (this == (PropertyTabChangedEventArgs) obj);
\r
110 /// GetHashCode Method
\r
114 /// Calculates a hashing value.
\r
117 public override int GetHashCode ()
\r
119 //FIXME: add class specific stuff;
\r
120 return base.GetHashCode();
\r
124 /// ToString Method
\r
128 /// Formats the object as a string.
\r
131 public override string ToString ()
\r
133 //FIXME: add class specific stuff;
\r
134 return base.ToString();
\r