示例#1
0
 public Battery(BatteryType type, string brand, int?standByHours, int?standByMinutes, int?talkHours, int?talkMinutes)
 {
     this.Type        = type;
     this.Brand       = brand;
     this.StandByTime = new BatteryLife(standByHours, standByMinutes);
     this.TalkTime    = new BatteryLife(talkHours, talkMinutes);
 }
示例#2
0
 public Battery(BatteryType type, string brand, int? standByHours, int? standByMinutes, int? talkHours, int? talkMinutes)
 {
     this.Type = type;
     this.Brand = brand;
     this.StandByTime = new BatteryLife(standByHours, standByMinutes);
     this.TalkTime = new BatteryLife(talkHours, talkMinutes);
 }