Ejemplo n.º 1
0
        public override bool Equals(object obj)
        {
            // Check for null values and compare run-time types.
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }

            LabelPrinter p = (LabelPrinter)obj;

            return(Type == p.Type && Name == p.Name);
        }
Ejemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="printer"></param>
 public Printer(LabelPrinter printer)
 {
     _printer = printer;
 }