当前位置: 首页>>代码示例>>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;未经允许,请勿转载。