public BatteryMonitorItemProvider () { // determine what system is available and instantiate the proper item for it if (BatteryMonitorUPowerItem.Available) battery = new BatteryMonitorUPowerItem (this); else if (BatteryMonitorSysItem.Available) battery = new BatteryMonitorSysItem (this); else battery = new BatteryMonitorProcItem (this); Hidden = false; battery.UpdateBattStat (); }
public BatteryMonitorItemProvider() { // determine what system is available and instantiate the proper item for it if (BatteryMonitorUPowerItem.Available) { battery = new BatteryMonitorUPowerItem(this); } else if (BatteryMonitorSysItem.Available) { battery = new BatteryMonitorSysItem(this); } else { battery = new BatteryMonitorProcItem(this); } Hidden = false; battery.UpdateBattStat(); }