public GadgetSmall(WidgetColor widgetcolor, GadgetColor gadgetcolor, GadgetPower power, long SerialNumber, long UPCNumber) : base(widgetcolor, gadgetcolor, power, SerialNumber, UPCNumber) { // Console.WriteLine("This is where we build the Widgets for Small Gadget"); List <WidgetSmall> mySmallWidgets = new List <WidgetSmall>(); for (int i = 0; i < _smallWidgets; i++) { mySmallWidgets.Add(new WidgetSmall(widgetcolor)); } List <WidgetMedium> myMediumWidgets = new List <WidgetMedium>(); for (int i = 0; i < _mediumWidgets; i++) { myMediumWidgets.Add(new WidgetMedium(widgetcolor)); } this._gadgetColor = gadgetcolor; this._widgetColor = widgetcolor; this._upcNumber = UPCNumber; this._serialNumber = SerialNumber; if (power == GadgetPower.Generator || power == GadgetPower.Solar) { this._gadgetPower = GadgetPower.Battery; } else { this._gadgetPower = power; } }
public AbstractGadget(WidgetColor widgetcolor, GadgetColor gadgetcolor, GadgetPower power, long SerialNumber, long UPCNumber) { this._gadgetPower = power; this._gadgetColor = gadgetcolor; this._widgetColor = widgetcolor; this._upcNumber = UPCNumber; this._serialNumber = SerialNumber; this._upcNumber = UPCNumber; }
public CustomLights(IGadget gadget, int Qty, GadgetType gadgettype) : base(gadget) { _qty = Qty; this._gadgetColor = gadget.GadgetColorType; this._widgetColor = gadget.WidgetColorType; this._gadgetPower = gadget.PowerType; this._gadgetType = gadgettype; this._gadgetSize = gadget.GadgetSize; this._serialNumber = gadget.SerialNumber; this._upcNumber = gadget.UpcNumber; }
public GadgetMedium(GadgetColor color, GadgetPower power) : base(color, power) { Console.WriteLine("This is where we build the Widgets for Medium Gadget"); }
public GadgetLarger(GadgetColor color, IWidget widget) : base(color, widget) { }
public GadgetLarge(GadgetColor color, GadgetPower power) : base(color, power) { Console.WriteLine("This is where we build the Widgets for Large Gadget") }
public virtual void Paint(GadgetColor color) { Console.WriteLine("Painting Gadget"); }
public AbstractGadget(GadgetColor color, GadgetPower power) { this._gadgetPower = power; this._color = color; }
public GadgetMedium(GadgetColor color, IWidget widget) : base(color, widget) { }
public GadgetSmall(GadgetColor color, IWidget widget) : base(color, widget) { }