Example #1
0
        public TrayApplicationContext()
        {
            InitializeContext();

            refreshTimer          = new System.Windows.Forms.Timer(components);
            refreshTimer.Interval = TimerInterval;
            refreshTimer.Tick    += new System.EventHandler(TimerHandler);
            //refreshTimer.Enabled = true;

            powerManager = PowerManagerProvider.CreatePowerManager(this);
            plans        = powerManager.GetPlans();

            AddMenuItems();
            UpdateBatteryState();
        }
        public TrayApplicationContext() 
		{
			InitializeContext();

            refreshTimer = new System.Windows.Forms.Timer(components);
            refreshTimer.Interval = TimerInterval;
            refreshTimer.Tick += new System.EventHandler(TimerHandler);
            refreshTimer.Enabled = true;

            powerManager = PowerManagerProvider.CreatePowerManager(this);
            plans = powerManager.GetPlans();

            AddMenuItems();
            UpdateBatteryState();
		}