Example #1
0
        static void Main()
        {
            GSM04 nextGSM = new GSM04();
            nextGSM.Battery.Type = _03.BatteryType.GSMBatteryTypes.NiCd.ToString();

               GSM myGSM = new GSM(null, null);

               myGSM.gsmBattery.HoursStandby = 36;
               myGSM.gsmBattery.HoursTalk = 10.5;
               myGSM.gsmBattery.Model = "batt-1223";

               myGSM.PhoneManufacturer = "Nokia Corp.";
               myGSM.PhoneModel = "N70";
               myGSM.PhoneOwner = "No One";
               myGSM.PhonePrice = 1000.50m;

               PrintGSMInfo(nextGSM.Battery.Type, myGSM.gsmBattery.HoursStandby, myGSM.gsmBattery.HoursTalk, myGSM.gsmBattery.Model, myGSM.PhoneManufacturer, myGSM.PhoneModel, myGSM.PhoneOwner, myGSM.PhonePrice);
        }
Example #2
0
        static void Main()
        {
            GSM04 nextGSM = new GSM04();

            nextGSM.Battery.Type = _03.BatteryType.GSMBatteryTypes.NiCd.ToString();

            GSM myGSM = new GSM(null, null);

            myGSM.gsmBattery.HoursStandby = 36;
            myGSM.gsmBattery.HoursTalk    = 10.5;
            myGSM.gsmBattery.Model        = "batt-1223";

            myGSM.PhoneManufacturer = "Nokia Corp.";
            myGSM.PhoneModel        = "N70";
            myGSM.PhoneOwner        = "No One";
            myGSM.PhonePrice        = 1000.50m;

            PrintGSMInfo(nextGSM.Battery.Type, myGSM.gsmBattery.HoursStandby, myGSM.gsmBattery.HoursTalk, myGSM.gsmBattery.Model, myGSM.PhoneManufacturer, myGSM.PhoneModel, myGSM.PhoneOwner, myGSM.PhonePrice);
        }