Exemplo n.º 1
0
 public Battery(string model, int timeIdle, int hour, BattertType type = BattertType.Unknown) // Constructor
 {
     if (model == null)
     {
         throw new ArgumentNullException("mode", "Can not be empty!");
     }
     this.Model     = model;
     this.HoursIDL  = timeIdle;
     this.HoursTalk = hour;
     this.Type      = type;
 }
Exemplo n.º 2
0
 // Constructor
 public Battery(string model, int timeIdle, int hour, BattertType type = BattertType.Unknown)
 {
     if (model == null)
     {
         throw new ArgumentNullException("mode", "Can not be empty!");
     }
     this.Model = model;
     this.HoursIDL = timeIdle;
     this.HoursTalk = hour;
     this.Type = type;
 }