private void MenuOfflineClick(object sender, RoutedEventArgs e) { var g = new GameList(); var sg = new StartGame(); g.Row2.Height = new GridLength(25); g.btnCancel.Click += delegate(object o, RoutedEventArgs args) { Program.LauncherWindow.NavigationService.GoBack(); }; g.OnGameClick += GOnOnGameClick; Program.LauncherWindow.Navigate(g); }
private void RibbonSelectionChanged(object sender, SelectionChangedEventArgs e) { var tab = Ribbon.SelectedItem as RibbonTab; if (tab == null) return; switch ((String) tab.Header) { case "Lobby": LobbyTab(); break; case "Host/Join": HostJoinTab(); break; case "Games": var gl = new GameList(); gl.OnGameClick += gl_OnGameDoubleClick; frame1.Navigate(gl); break; case "Alerts": frame1.Navigate(new NotificationList()); NotificationTab.HeaderStyle = Resources["NormalHeaderColor"] as Style; NotificationTab.InvalidateVisual(); break; } }
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); } } }
private void RibbonButtonClick1(object sender, RoutedEventArgs e) { _currentSetList = null; var gl = new GameList(); gl.OnGameClick += gl_OnGameDoubleClick; frame1.Navigate(gl); }
private void RibbonButtonClick(object sender, RoutedEventArgs e) { var gl = frame1.Content as GameList; if (gl == null) { gl = new GameList(GameList.LoadEvent.InstallGame); gl.OnGameClick += gl_OnGameDoubleClick; frame1.Navigate(gl); } else gl.InstallGame(); }
private void BHostClick(object sender, RoutedEventArgs e) { var gl = new GameList(); gl.OnGameClick += GlHostGameClick; frame1.Navigate(gl); }
private void MenuOfflineConnectClick(object sender, RoutedEventArgs e) { var g = new GameList(); g.Row2.Height = new GridLength(25); g.btnCancel.Click += delegate(object o, RoutedEventArgs args) { Program.LauncherWindow.NavigationService.GoBack(); }; g.OnGameClick += GOoffConnOnGameClick; Program.LauncherWindow.Navigate(g); }
private void Ribbon_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e) { RibbonTab tab = Ribbon.SelectedItem as RibbonTab; if (tab != null) { switch ((String)tab.Header) { case "Lobby": LobbyTab(); break; case "Host/Join": HostJoinTab(); break; case "Games": GameList gl = new GameList(); gl.OnGameClick += new EventHandler(gl_OnGameDoubleClick); frame1.Navigate(gl); break; case "!": frame1.Navigate(new NotificationList()); NotificationTab.HeaderStyle = this.Resources["NormalHeaderColor"] as Style; NotificationTab.InvalidateVisual(); break; } } }
private void RibbonButton_Click_1(object sender, RoutedEventArgs e) { _currentSetList = null; GameList gl = new GameList(); gl.OnGameClick += new EventHandler(gl_OnGameDoubleClick); frame1.Navigate(gl); }
private void bHost_Click(object sender, RoutedEventArgs e) { GameList gl = new GameList(); gl.OnGameClick += new EventHandler(gl_HostGameClick); frame1.Navigate(gl); }