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); }
/// <summary> /// /// </summary> /// <param name="printer"></param> public Printer(LabelPrinter printer) { _printer = printer; }