Ejemplo n.º 1
0
        private void OnHotKeyHandler1(HotKey obj)
        {
            CustomScreen screen = new CustomScreen();
            Thread t = new Thread(new ThreadStart(() =>
            {
                //byte originalBrightness = CustomScreen.GetCurBrightness();
                //CustomScreen.SetBrightness(100);

                ApplicationManager.ChangeWindow(true);

                //CustomScreen.SetBrightness(originalBrightness);

            }));
               // t.IsBackground = true;
            t.Start();
        }
Ejemplo n.º 2
0
        private void OnHotKeyHandler(HotKey obj)
        {
            CustomScreen screen = new CustomScreen();
            Thread t = new Thread(new ThreadStart(() =>
            {
                //ApplicationManager.SaveScreen();
                ApplicationManager.ChangeWindow(false);

            }));

             t.Start();
        }