// Defining constructors
 public Battery(BatteryType texture, string model, int hoursIdle, int hoursTalk)
 {
     this.batteryTexture = texture;
     this.model = model;
     this.hoursIdle = hoursIdle;
     this.hoursTalk = hoursTalk;
 }
 //Defining properties
 public Battery(BatteryType texture)
 {
     this.batteryTexture = texture;
     this.model = null;
     this.hoursIdle = null;
     this.hoursTalk = null;
 }
 public Battery(string model, int idleHours, int talkHours, BatteryType type)
 {   
     this.model = model;
     this.idleHours = idleHours;
     this.talkHours = talkHours;
     this.batteryType = type;
 }
Exemple #4
0
 public Battery(string model = null, decimal hoursIdle = 0, decimal hoursTalk = 0, BatteryType batteryType = 0)
 {
     this.Model = model;
     this.HoursIdle = hoursIdle;
     this.HoursTalk = hoursTalk;
     this.BatteryType = batteryType;
 }
Exemple #5
0
 public Battery(string model, double hoursIdle, double hoursTalk, BatteryType type)
 {
     this.model = model;
     this.hoursIdle = hoursIdle;
     this.hoursTalk = hoursTalk;
     this.batteryType = type;
 }
Exemple #6
0
 public Battery(string model, double? hoursIdle, double? hoursTalk, BatteryType? batteryType)
 {
     this.Model = model;
     this.HoursIdle = hoursIdle;
     this.HoursTalk = hoursTalk;
     this.BatteryType = batteryType;
 }
Exemple #7
0
 public Battery(BatteryType batteryType, int? hoursIdle = null, int? hoursTalk = null)
 {
     this.Model = batteryType.ToString();
     this.HoursIdle = hoursIdle;
     this.HoursTalk = hoursTalk;
     this.batteryType = batteryType;
 }
Exemple #8
0
 public Battery(string model = null, TimeSpan? idleHours = null, TimeSpan? talkHours = null, BatteryType? type = null)
 {
     this.Model = model;
     this.IdleHours = idleHours;
     this.TalkHours = talkHours;
     this.Type = type;
 }
 public Battery(string model, BatteryType type, int hours, int talk)
 {
     this.type = type;
     this.model = model;
     this.hoursIdle = hours;
     this.hoursTalk = talk;
 }
Exemple #10
0
 public Battery(BatteryType batteryType, string model = null, double hoursIdle = 0, double hoursTalk = 0)
 {
     this.batteryType = batteryType;
     this.model = model;
     this.hoursIdle = hoursIdle;
     this.hoursTalk = hoursTalk;
 }
Exemple #11
0
 public Battery(string model, BatteryType type, string hoursIdle, string hoursTalk)
 {
     this.Model = model;
     this.Type = type;
     this.HoursIdle = hoursIdle;
     this.HoursTalk = hoursTalk;
 }
Exemple #12
0
 public Battery(string model, float? hoursIdle, float? hoursTalk, BatteryType batteryType)
 {
     this.Model = model;
     this.HoursIdle = hoursIdle;
     this.HoursTalk = hoursTalk;
     this.BatteryType = batteryType;
 }
Exemple #13
0
 public Battery(string model, int? hoursIdle, int? hoursTalk, BatteryType type) 
     : this(model)
 {
     this.HoursIdle = hoursIdle;
     this.HoursTalk = hoursTalk;
     this.Type = type;
 }
Exemple #14
0
 public Battery(string batteryModel, int hoursIdle, int hoursTalk, BatteryType batteryType)
 {
     this.BatteryModel = batteryModel;
     this.HoursIdle = hoursIdle;
     this.HoursTalk = hoursTalk;
     this.BatteryType = batteryType;
 }
Exemple #15
0
 public Battery(string model, BatteryType type)
 {
     this.Model = model;
     this.type = type;
     this.hoursIdle = null;
     this.hoursTalk = null;
 }
Exemple #16
0
 public Battery(string model, BatteryType type, float hourh1, float hours2)
 {
     this.Model = model;
     this.type = type;
     this.HoursIdle = hourh1;
     this.HoursTalk = hours2;
 }
Exemple #17
0
 public Battery(string model, ushort hoursIdle, ushort hoursTalk, BatteryType type)
 {
     Model = model;
     HoursIdle = hoursIdle;
     HoursTalk = hoursTalk;
     Type = type;
 }
Exemple #18
0
 public Battery(string model, double hoursIdle, double hoursTalk, BatteryType type)
 {
     this.MODEL = model;
        this.HOURSIDLE = hoursIdle;
        this.HOURSTALK = hoursTalk;
        this.TYPE = type;
 }
Exemple #19
0
 public Battery(string model, int hoursIdle, int talk, BatteryType type)
 {
     this.Model = model;
     this.HoursIdle = hoursIdle;
     this.HoursTalk = talk;
     this.type = type;
 }
 //constructor
 public Battery(BatteryType? type = null, BatteryColor? color = null, int? hoursIdle = null, int? hoursTalk = null)
 {
     this.type = type;
     this.color = color;
     this.hoursIdle = hoursIdle;
     this.HoursTalk = hoursTalk;
 }
Exemple #21
0
 public Battery(string model, int hoursIdle, int hoursTalk, int batteryType)
 {
     this.model = model;
     this.hoursIdle = hoursIdle;
     this.hoursTalk = hoursTalk;
     this.batteryType = (BatteryType)batteryType;
 }
Exemple #22
0
 public Battery(string model, double hoursTalk, double hoursIdle, BatteryType type)
     : this(model)
 {
     this.HoursTalk = hoursTalk;
     this.HoursIdle = hoursIdle;
     this.BatteryType = type;
 }
Exemple #23
0
 public Battery()
 {
     this.model = string.Empty;
     this.hoursIdle = 0;
     this.hoursTalk = 0;
     this.batteryType = 0;
 }
Exemple #24
0
 public Battery(Battery battery)
 {
     this.model = battery.model;
     this.hoursTalk = battery.hoursIdle;
     this.hoursTalk = battery.hoursTalk;
     this.batteryType = battery.batteryType;
 }
Exemple #25
0
 public Battery(string model, float hoursIdle, float hoursTalk, BatteryType batteryType)
     : this(model)
 {
     this.HoursIdle = hoursIdle;
     this.HoursTalk = hoursTalk;
     this.BatteryType = batteryType;
 }
Exemple #26
0
 public Battery(string model, BatteryType type)
     : this(model)
 {
     this.hoursIdle = null;  //setting the field
     this.hoursTalk = null;  //setting the field
     this.Type = type;       //setting the property
 }
 public Battery(string model, BatteryType? batType, double? hoursIdle, double? hoursTalk)
 {
     this.model = model;
     this.batType = batType;
     this.hoursIdle = hoursIdle;
     this.hoursTalk = hoursTalk;
 }
 public Battery(int? hoursIdle, int? hoursTalk, BatteryType? type, string model)
 {
     this.HoursIdle = hoursIdle;
     this.HoursTalk = hoursTalk;
     this.Type = type;
     this.Model = model;
 }
Exemple #29
0
 public Battery(string model,short? hourIdle,short? hourTalk,BatteryType type)
 {
     this.Model = model;
     this.HourIdle = hourIdle;
     this.HourTalk = hourTalk;
     this.type = type;
 }
Exemple #30
0
 public Battery(string model, uint hoursIdle, uint hoursTalk, BatteryType type)
 {
     this.model = model;
     this.hoursIdle = hoursIdle;
     this.hoursTalk = hoursTalk;
     this.type = type;
 }
 public Battery(string model, int hoursIdle, int hoursTalk, BatteryType type) : this(model)
 {
     this.HoursIdle = hoursIdle;
     this.HoursTalk = hoursTalk;
     this.Type      = type;
 }
 public GSM(string manufacturer, string model, decimal price, string owner, string batteryModel, int batteryCapacity, BatteryType typeBattery,
            int displayHeight, int displayWidth, int numberOfColors) : this(manufacturer, model, price, owner, batteryModel, batteryCapacity, typeBattery)
 {
     display = new Display(displayHeight, displayWidth, numberOfColors);
 }
 public GSM(string manufacturer, string model, decimal price, string owner, string batteryModel, int batteryCapacity, BatteryType typeBattery)
     : this(manufacturer, model, price, owner)
 {
     battery = new Battery(batteryModel, batteryCapacity, typeBattery);
 }
Exemple #34
0
 public Battery(BatteryType type, uint hoursTalk, uint idleTime)
 {
     this.type      = type;
     this.hoursTalk = hoursTalk;
     this.idleTime  = idleTime;
 }
Exemple #35
0
 public Battery(string model, BatteryType type) : this(model)
 {
     this.Type = type;
 }
Exemple #36
0
 public Battery(string model, BatteryType type)
 {
     this.Model = model;
     this.Type  = type;
 }
 public Battery(BatteryType setType, int?setHoursIdle, int?setHoursTalk = null)
     : this(setType, setHoursIdle)
 {
     this.HoursTalk = setHoursTalk;
 }
 public Battery(BatteryType setType, int?setHoursIdle = null)
 {
     this.HoursIdle = setHoursIdle;
 }
 public Battery(BatteryType setType)
 {
 }
Exemple #40
0
 public Battery(string model, BatteryType type, int hoursIdle, int hoursTalk) : this(model, type)
 {
     this.HoursIdle = hoursIdle;
     this.HoursTalk = hoursTalk;
 }
Exemple #41
0
 public Battery(BatteryType type, int?hoursIdle)
     : this(type, hoursIdle, null)
 {
 }
Exemple #42
0
 public Battery(BatteryType type, int?hoursIdle, int?hoursTalk)
 {
     this.type      = type;
     this.hoursIdle = hoursIdle;
     this.hoursTalk = hoursTalk;
 }
Exemple #43
0
 public Battery(string batteryModel, double batteryHoursIdle, double batteryHoursTalk, BatteryType batteryType) : this(batteryModel)
 {
     this.HoursIdle = batteryHoursIdle;
     this.HoursTalk = batteryHoursTalk;
     this.Type      = batteryType;
 }
Exemple #44
0
 // Constructors
 public Battery(BatteryType type)
     : this(type, null, null)
 {
 }
Exemple #45
0
 /// <summary>
 /// used to create a model of a battery object.
 /// </summary>
 /// <param name="battType">used to determine the type of battery in use.</param>
 public Battery(BatteryType battType)
 {
     this.BattType = battType;
 }
Exemple #46
0
 public Battery(string model, double hoursIdle, double hoursTalk, BatteryType batteryType)
     : this(model, hoursIdle, hoursTalk)
 {
     this.typeOfBattery = batteryType;
 }
 public Batterys(string model, double talkHours, BatteryType type)
     : this(model, type)
 {
     this.TalkHours = talkHours;
 }
Exemple #48
0
 public Battery(int capacity, BatteryType batteryType)
 {
     Capacity    = capacity;
     BatteryType = batteryType;
     ChargeLevel = 20;
 }
 public Battery(BatteryType baterryModel, int?hoursIdle)
     : this(baterryModel, hoursIdle, null)
 {
 }
 public Batterys(string model, double idleHours, double talkHours, BatteryType type)
     : this(model, talkHours, type)
 {
     this.IdleHours = idleHours;
 }
Exemple #51
0
 public Battery(string model, BatteryType battery)
     : this(model, 0, 0, battery)
 {
     this.model = model;
 }
 public Battery(BatteryType baterryModel, int?hoursIdle, int?hoursTalked)
 {
     this.BatteryModel = baterryModel;
     this.HoursIdle    = hoursIdle;
     this.HoursTalked  = hoursTalked;
 }
Exemple #53
0
 public Battery(string model, double hoursIdle, double hoursTalk, BatteryType type)
     : this(model, hoursIdle, hoursTalk)
 {
     this.Type = type;
 }
    // constructors

    public Battery(BatteryType baterryModel)
        : this(baterryModel, null, null)
    {
    }
Exemple #55
0
 public Battery(string model, BatteryType batteryType) : this(model)
 {
     this.BatteryType = batteryType;
 }
Exemple #56
0
 public Battery(string model, int capacity, BatteryType batteryType)
 {
     this.Model         = model;
     this.Capacity      = capacity;
     this.TypeOfBattery = batteryType;
 }
Exemple #57
0
 public Battery(BatteryType type) :
     this(type, 0)
 {
 }
Exemple #58
0
 public Battery(string model, BatteryType batteryType, double hoursIdle, double hoursTalk) : this(model)
 {
     this.HoursIdle   = hoursIdle;
     this.HoursTalk   = hoursTalk;
     this.BatteryType = batteryType;
 }
Exemple #59
0
 public Battery(BatteryType type, uint hoursTalk) :
     this(type, hoursTalk, 0)
 {
 }
Exemple #60
0
 public Battery(string model, TimeSpan hoursIdle, TimeSpan hoursTalk, BatteryType batteryType, BatteryType typeBattery)
 {
     this.model       = model;
     this.hoursIdle   = hoursIdle;
     this.hoursTalk   = hoursTalk;
     this.batteryType = batteryType;
     this.TypeBattery = typeBattery;
 }