Example #1
0
        public bool Equals(HddToMonitor other)
        {
            if (other == null)
            {
                return(false);
            }

            return(this.GetHashCode() == other.GetHashCode());
        }
Example #2
0
        /// <summary>
        /// Copies the object.
        /// </summary>
        /// <returns></returns>
        public HddToMonitor Copy()
        {
            HddToMonitor hdd = new HddToMonitor();

            hdd.EnableCheckHddLoad = this.EnableCheckHddLoad;
            hdd.HddLoad            = this.HddLoad;
            hdd.Drive = this.Drive;
            return(hdd);
        }
Example #3
0
        public override bool Equals(object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }

            HddToMonitor other = obj as HddToMonitor;

            return(this.Equals(other));
        }