title: Refactor long switch statement
body: <p>I'm program in c# which you controlling by dictating command so now i have a long switch statement. Something like</p>
  
  <pre><code>switch (command)
  
  {
      case "Show commands":
          ProgramCommans.ShowAllCommands();
          break;
      case "Close window":
          ControlCommands.CloseWindow();
          break;
      case "Switch window":
          ControlCommands.SwitchWindow();
          break;
  }
  </code></pre>
  
  <p>and so on</p>
  
  <p>Almost all cases call only one method, methods are not in one class they are distributed in many classes. So the question is, how i could refactor this switch to more elegant way?</p>