Example #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            var view = new Charger();
            var mdl  = new SmsStorage();
            var cnt  = new SmsController(view, mdl);

            //var bmdl = new Battery(BatteryMethod.ThreadTimer);
            var bmdl = new Battery(BatteryMethod.Tasks);
            //var bmdl = new Battery(BatteryMethod.Threads);
            var bcnt = new BatteryController(view, bmdl);

            Application.Run(view);
        }
Example #2
0
 public void setChargeController(BatteryController cont)
 {
     chargerController = cont;
 }