// // The Game Board has a few buttons for handling game level functions that don't involve clicking a card // private void WindowButton_Click(object sender, RoutedEventArgs e) { Button windowButton = sender as Button; switch (windowButton.Name) { case "HowToPlay": HowToPlay howtoplay = new HowToPlay(); howtoplay.ShowDialog(); break; case "GimmeaHint": _gameViewModel.GameCommand(windowButton.Name); break; case "NewGame": _gameViewModel.GameCommand(windowButton.Name); break; case "SaveGame": // // Sorry, this feature is not yet implemented // MessageBox.Show("Sorry, Feature is still in Development"); break; case "Quit": Close(); _gameViewModel.GameCommand(windowButton.Name); break; } }