Exemple #1
0
        /// <summary>
        /// Determine if the given object is equal to this
        /// object.  This will check if the Status Value match.
        /// </summary>
        /// <param name="obj">Object to compare with this object.</param>
        /// <returns>TRUE = Status Value matched.</returns>
        public override bool Equals(object obj)
        {
            //Check for null and compare run-time types.
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }

            AdcpStatus p = (AdcpStatus)obj;

            return(Status == p.Status);
        }
Exemple #2
0
 /// <summary>
 /// Get the string for the status of this object.
 /// </summary>
 /// <returns>String for this object.</returns>
 public string GetStatusString()
 {
     return(AdcpStatus.GetStatusString(Status));
 }
Exemple #3
0
 /// <summary>
 /// Get the color for the status of this object.
 /// </summary>
 /// <returns>Color for this object.</returns>
 public Brush GetStatusColor()
 {
     return(AdcpStatus.GetStatusColor(Status));
 }