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(); } } }