예제 #1
0
 private void RibbonButtonClick3(object sender, RoutedEventArgs e)
 {
     SetList setlist = frame1.Content as SetList;
     if (setlist != null && setlist.SelectedGame != null)
     {
         MessageBoxResult msg = MessageBox.Show(string.Format("Are you sure you want to delete {0}?", setlist.SelectedGame.Name), "Confirmation", MessageBoxButton.YesNo);
         if (msg == MessageBoxResult.Yes)
         {
             Program.GamesRepository.UninstallGame(setlist.SelectedGame);
             _currentSetList = null;
             var gl = new GameList();
             gl.OnGameClick += gl_OnGameDoubleClick;
             frame1.Navigate(gl);
          }
     }
 }
예제 #2
0
 private void gl_OnGameDoubleClick(object sender, EventArgs e)
 {
     var g = sender as Data.Game;
     _currentSetList = new SetList(g);
     frame1.Navigate(_currentSetList);
 }
예제 #3
0
 private void RibbonButtonClick1(object sender, RoutedEventArgs e)
 {
     _currentSetList = null;
     var gl = new GameList();
     gl.OnGameClick += gl_OnGameDoubleClick;
     frame1.Navigate(gl);
 }
예제 #4
0
 private void RibbonButton_Click_1(object sender, RoutedEventArgs e)
 {
     _currentSetList = null;
     GameList gl = new GameList();
     gl.OnGameClick += new EventHandler(gl_OnGameDoubleClick);
     frame1.Navigate(gl);
 }