Пример #1
0
 //===============
 public override bool Equals(Object obj)
 {
     //Check for null and compare run-time types.
     if (obj == null || this.GetType() != obj.GetType())
     {
         return(false);
     }
     if (obj is LabeledControl)
     {
         LabeledControl p = (LabeledControl)obj;
         return(this.ControlLabel.ToLowerInvariant() == p.ControlLabel.ToLowerInvariant());
     }
     else
     {
         return(false);
     }
 }