當前位置: 首頁>>代碼示例>>C#>>正文


C# BatteryType類代碼示例

本文整理匯總了C#中BatteryType的典型用法代碼示例。如果您正苦於以下問題:C# BatteryType類的具體用法?C# BatteryType怎麽用?C# BatteryType使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


BatteryType類屬於命名空間,在下文中一共展示了BatteryType類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Battery

 public Battery(int? hoursIdle, int? hoursTalk, BatteryType? type, string model)
 {
     this.HoursIdle = hoursIdle;
     this.HoursTalk = hoursTalk;
     this.Type = type;
     this.Model = model;
 }
開發者ID:kalinalazarova1,項目名稱:TelerikAcademy,代碼行數:7,代碼來源:Battery.cs

示例2: Battery

 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;
 }
開發者ID:glifada,項目名稱:TelerikAcademy,代碼行數:7,代碼來源:Battery.cs

示例3: Battery

 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;
 }
開發者ID:Radvach,項目名稱:TelerikAcademy,代碼行數:7,代碼來源:Battery.cs

示例4: Battery

 public Battery(string batteryModel, int hoursIdle, int hoursTalk, BatteryType batteryType)
 {
     this.BatteryModel = batteryModel;
     this.HoursIdle = hoursIdle;
     this.HoursTalk = hoursTalk;
     this.BatteryType = batteryType;
 }
開發者ID:aleks-todorov,項目名稱:HomeWorks,代碼行數:7,代碼來源:Battery.cs

示例5: Battery

 public Battery(string model, float? hoursIdle, float? hoursTalk, BatteryType batteryType)
 {
     this.Model = model;
     this.HoursIdle = hoursIdle;
     this.HoursTalk = hoursTalk;
     this.BatteryType = batteryType;
 }
開發者ID:bahtev,項目名稱:TelerikAcademy,代碼行數:7,代碼來源:Battery.cs

示例6: Battery

 public Battery(string model, double hoursIdle, double hoursTalk, BatteryType type)
 {
     this.MODEL = model;
        this.HOURSIDLE = hoursIdle;
        this.HOURSTALK = hoursTalk;
        this.TYPE = type;
 }
開發者ID:iliantova,項目名稱:Telerik-Homework,代碼行數:7,代碼來源:Battery.cs

示例7: Battery

 public Battery(string model, BatteryType type, float hourh1, float hours2)
 {
     this.Model = model;
     this.type = type;
     this.HoursIdle = hourh1;
     this.HoursTalk = hours2;
 }
開發者ID:KostaDinkov,項目名稱:TelerikAcademy,代碼行數:7,代碼來源:Battery.cs

示例8: Battery

 public Battery(string model,short? hourIdle,short? hourTalk,BatteryType type)
 {
     this.Model = model;
     this.HourIdle = hourIdle;
     this.HourTalk = hourTalk;
     this.type = type;
 }
開發者ID:naturalna,項目名稱:OOPPrinciples,代碼行數:7,代碼來源:Program.cs

示例9: Battery

 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
 }
開發者ID:MihailGochev,項目名稱:Telerik,代碼行數:7,代碼來源:Battery.cs

示例10: Battery

 public Battery(string model, BatteryType? batType, double? hoursIdle, double? hoursTalk)
 {
     this.model = model;
     this.batType = batType;
     this.hoursIdle = hoursIdle;
     this.hoursTalk = hoursTalk;
 }
開發者ID:Bonevm01,項目名稱:OOP_DefiningClasses1,代碼行數:7,代碼來源:Battery.cs

示例11: Battery

 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;
 }
開發者ID:kizisoft,項目名稱:TelerikAcademy,代碼行數:7,代碼來源:Battery.cs

示例12: Battery

 //Defining properties
 public Battery(BatteryType texture)
 {
     this.batteryTexture = texture;
     this.model = null;
     this.hoursIdle = null;
     this.hoursTalk = null;
 }
開發者ID:NikolovNikolay,項目名稱:Telerik-Homeworks,代碼行數:8,代碼來源:Battery.cs

示例13: Battery

 public Battery(string model, int idleHours, int talkHours, BatteryType type)
 {   
     this.model = model;
     this.idleHours = idleHours;
     this.talkHours = talkHours;
     this.batteryType = type;
 }
開發者ID:ScreeM92,項目名稱:Software-University,代碼行數:7,代碼來源:Battery.cs

示例14: Battery

 //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;
 }
開發者ID:Wooanna,項目名稱:GitHubTelerikAcademy,代碼行數:8,代碼來源:Battery.cs

示例15: Battery

 public Battery(string model, ushort hoursIdle, ushort hoursTalk, BatteryType type)
 {
     Model = model;
     HoursIdle = hoursIdle;
     HoursTalk = hoursTalk;
     Type = type;
 }
開發者ID:androidejl,項目名稱:Telerik,代碼行數:7,代碼來源:Battery.cs


注:本文中的BatteryType類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。