Exemplo n.º 1
0
		public PowerManager()
		{
			Name = "PowerManager";
			IsSingleton = true;
			MenuItem NotifierMenuItem = Notifier.AdjustMenuItem(System.Windows.Forms.MenuMerge.Add, "Suspend Computer", delegate(object sender, EventArgs e)
			{
				Start();
			});
			powerfm = new PowerMgrForm();
			powerfm.BelongModule = this;
			powerfm.NotifierMenuItem = NotifierMenuItem;
		}
Exemplo n.º 2
0
        public PowerManager()
        {
            Name        = "PowerManager";
            IsSingleton = true;
            MenuItem NotifierMenuItem = Notifier.AdjustMenuItem(System.Windows.Forms.MenuMerge.Add, "Suspend Computer", delegate(object sender, EventArgs e)
            {
                Start();
            });

            powerfm = new PowerMgrForm();
            powerfm.BelongModule     = this;
            powerfm.NotifierMenuItem = NotifierMenuItem;
        }