示例#1
0
文件: Mobile.cs 项目: Anpl-sc/Labs
 private void PowerSupply(IPowerProfile profile)
 {
     Battery.PowerSupply(profile);
 }
示例#2
0
文件: Battery.cs 项目: Anpl-sc/Labs
 public void PowerSupply(IPowerProfile powerProfile)
 {
     userInOut.WriteLine("Power supplying with voltage " + powerProfile.Voltage + ", and currency " + powerProfile.OutputCurrency + "\n");
 }