title: Opening a view via another event
body: <p>I have several views that need to be opened, but I don't want to repeat the code.  Currently each button triggers something like this:</p>
  
  <pre><code>private void icon_Add(object sender, RoutedEventArgs e)
  {
      viewName var = new viewName();
      var.Show();
      Close();
  }
  </code></pre>
  
  <p>Ideally, I'd like something like this (but don't know what type of variable/object I should use):</p>
  
  <pre><code>private void icon_Add(object sender, RoutedEventArgs e)
  {
      OpenView(viewName)
  }
  
  private voice OpenView(?????? newView)
  {
      newView var = new newView();
      var.Show();
      Close();
  }
  </code></pre>
  
  <p>Any help would be appreciated (yet again).</p>