public string Work() { int power = _powerSupply.GetPower(); if (power <= 0) { return("Won't work."); } else if (power < 100) { return("Slow"); } else if (power < 200) { return("Work fine"); } else { return("Warring!"); } }
public string Work() { int power = _powerSupply.GetPower(); if (power <= 0) { return("wont work!"); } else if (power < 100) { return("slow"); } else if (power < 200) { return("work fine"); } else { return("warnning!"); } }
public string Work() { int p = _powerSupply.GetPower(); if (p <= 0) { return("Won't work."); } else if (p < 100) { return("Slow."); } else if (p < 200) { return("Work fine."); } else { return("warnning"); } }
public string word() { int power = _powerSupply.GetPower(); if (power <= 0) { return("没电"); } else if (power <= 100) { return("慢转"); } else if (power <= 200) { return("快转"); } else { return("危险"); } }
public string Work() { int power = _powersupply.GetPower(); if (power <= 0) { return("Can't work"); } else if (power > 0 && power <= 100) { return("Slow"); } else if (power > 100 && power <= 200) { return("Fine"); } else { return("Warning"); } }