Наследование: System.Windows.Window, IComponentConnector, INotifyPropertyChanged, IStyleConnector
Пример #1
0
 private void SwitchView(string view)
 {
     if (this.lvGames.View == null)
     {
         ViewBase base2 = System.Windows.Application.Current.Resources["gridView"] as ViewBase;
         this.lvGames.View = base2;
     }
     if (view != "tv")
     {
         ViewBase base3 = System.Windows.Application.Current.Resources[view] as ViewBase;
         this.lvGames.View = base3;
     }
     if (view == "gridView")
     {
         Style style = base.Resources["lvDarkItemStyleLocal"] as Style;
         this.lvGames.ItemContainerStyle = style;
     }
     else if (view == "tileView")
     {
         Style style2 = base.Resources["lvGenericItemStyleLocal"] as Style;
         this.lvGames.ItemContainerStyle = style2;
     }
     else if (view == "tv")
     {
         base.Hide();
         this.btnTV.IsChecked = false;
         wndFullScreen screen = new wndFullScreen();
         if (screen.ShowDialog() == true)
         {
             base.Show();
         }
     }
 }
Пример #2
0
 private void SwitchView(string view)
 {
     if (this.lvGames.View == null)
     {
         ViewBase base2 = System.Windows.Application.Current.Resources["gridView"] as ViewBase;
         this.lvGames.View = base2;
     }
     if (view != "tv")
     {
         ViewBase base3 = System.Windows.Application.Current.Resources[view] as ViewBase;
         this.lvGames.View = base3;
     }
     if (view == "gridView")
     {
         Style style = base.Resources["lvDarkItemStyleLocal"] as Style;
         this.lvGames.ItemContainerStyle = style;
     }
     else if (view == "tileView")
     {
         Style style2 = base.Resources["lvGenericItemStyleLocal"] as Style;
         this.lvGames.ItemContainerStyle = style2;
     }
     else if (view == "tv")
     {
         base.Hide();
         this.btnTV.IsChecked = false;
         wndFullScreen screen = new wndFullScreen();
         if (screen.ShowDialog() == true)
         {
             base.Show();
         }
     }
 }