public bool CanBePowered() { if (IsDeviceOn && MaxRequiredPower > 0) { if (PowerManager.RequestPower(MaxRequiredPower, CurrentPowerConsumption)) { CurrentPowerConsumption = MaxRequiredPower; return(true); } else { CurrentPowerConsumption = 0; return(false); } } else { CurrentPowerConsumption = 0; return(false); } }