本文整理汇总了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;
}
示例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;
}
示例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;
}
示例4: Battery
public Battery(string batteryModel, int hoursIdle, int hoursTalk, BatteryType batteryType)
{
this.BatteryModel = batteryModel;
this.HoursIdle = hoursIdle;
this.HoursTalk = hoursTalk;
this.BatteryType = batteryType;
}
示例5: Battery
public Battery(string model, float? hoursIdle, float? hoursTalk, BatteryType batteryType)
{
this.Model = model;
this.HoursIdle = hoursIdle;
this.HoursTalk = hoursTalk;
this.BatteryType = batteryType;
}
示例6: Battery
public Battery(string model, double hoursIdle, double hoursTalk, BatteryType type)
{
this.MODEL = model;
this.HOURSIDLE = hoursIdle;
this.HOURSTALK = hoursTalk;
this.TYPE = type;
}
示例7: Battery
public Battery(string model, BatteryType type, float hourh1, float hours2)
{
this.Model = model;
this.type = type;
this.HoursIdle = hourh1;
this.HoursTalk = hours2;
}
示例8: Battery
public Battery(string model,short? hourIdle,short? hourTalk,BatteryType type)
{
this.Model = model;
this.HourIdle = hourIdle;
this.HourTalk = hourTalk;
this.type = type;
}
示例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
}
示例10: Battery
public Battery(string model, BatteryType? batType, double? hoursIdle, double? hoursTalk)
{
this.model = model;
this.batType = batType;
this.hoursIdle = hoursIdle;
this.hoursTalk = hoursTalk;
}
示例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;
}
示例12: Battery
//Defining properties
public Battery(BatteryType texture)
{
this.batteryTexture = texture;
this.model = null;
this.hoursIdle = null;
this.hoursTalk = null;
}
示例13: Battery
public Battery(string model, int idleHours, int talkHours, BatteryType type)
{
this.model = model;
this.idleHours = idleHours;
this.talkHours = talkHours;
this.batteryType = type;
}
示例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;
}
示例15: Battery
public Battery(string model, ushort hoursIdle, ushort hoursTalk, BatteryType type)
{
Model = model;
HoursIdle = hoursIdle;
HoursTalk = hoursTalk;
Type = type;
}