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;
     }
 }
        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;
            }
        }