예제 #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");
 }