Ejemplo n.º 1
0
        private static void ProcessCommand(object o)
        {
            var c = (Command)o;

            switch (c)
            {
            // TODO Fix windows closing: current commands close them just by half
            case Command.FullCloseWindows:
                BodyModule.CloseWindows();
                Thread.Sleep(3000);
                BodyModule.CloseWindows();
                Thread.Sleep(3000);
                BodyModule.CloseWindows();
                break;

            case Command.FullOpenWindows:
                BodyModule.OpenWindows();
                Thread.Sleep(3000);
                BodyModule.OpenWindows();
                Thread.Sleep(3000);
                BodyModule.OpenWindows();
                break;
            }
        }
Ejemplo n.º 2
0
 private void Button_Click_1(object sender, RoutedEventArgs e)
 {
     BodyModule.OpenWindows();
 }