Esempio n. 1
0
 static void Run(string[] args)
 {
     var state = new DesktopState();
     switch (args[0].ToLower())
     {
         case "/record"  : state.Record();           break;
         case "/restore" : state.Restore();          break;
         case "/discard" : state.Discard();          break;
         case "/output"  : Console.WriteLine(state); break;
         default         : OutputHelp();             break;
     }
 }
Esempio n. 2
0
        static void Run(string[] args)
        {
            var state = new DesktopState();

            switch (args[0].ToLower())
            {
            case "/record": state.Record();           break;

            case "/restore": state.Restore();          break;

            case "/discard": state.Discard();          break;

            case "/output": Console.WriteLine(state); break;

            default: OutputHelp();             break;
            }
        }