//Problem 2. -> constructor public Battery(string model, uint hoursIdle, uint hoursTalk, BatType batteryType) { this.Model = model; this.HoursIdle = hoursIdle; this.HoursTalk = hoursTalk; this.BatteryType = batteryType; }
/// <summary> /// defult constructor /// </summary> /// <param name="color">the color</param> public Bat(Color color, BatType batType) : base(color) { base.Position = new Vector(0, Constants.DEFULT_SCREEN_SIZE.Y - (Constants.DEFULT_SCREEN_SIZE.Y / 10)); Size = new Vector(Constants.BAT_SIZE.X, Constants.BAT_SIZE.Y); base.Paint = new Paint(); Paint.Color = color; Velocity = new Vector(Constants.DEFULT_VECTOR); this.batType = batType; }
public BatTask(string zip, string output, int count, string mode, BatType batType, bool noCopy, List <Computer> computers, List <string> os) : base(computers, os) { Zip = zip; Output = output; TestCount = count; Mode = mode; Type = batType; NoCopy = noCopy; }
public BatteryControl(BatType bType) { InitializeComponent(); _bType = bType; CalcRanges(); }
private readonly BatType batType; //the type of the bat /// <summary> /// constructor /// </summary> /// <param name="position">the position</param> /// <param name="color">the color</param> /// <param name="velocity">the velocity</param> public Bat(Vector position, Color color, Vector velocity, BatType batType) : base(position, color) { this.Velocity = new Vector(velocity); this.batType = batType; }
public Battery(BatType batteryType, int hoursIdle, int hoursTalk) { this.BatteryType = batteryType; this.HoursIdle = hoursIdle; this.HoursTalk = hoursTalk; }