public Overview() { InitializeComponent(); ArenaFilters.SetUpdateCallback(UpdateCallBack); ConstructedFilters.SetUpdateCallback(UpdateCallBack); ConstructedFilters.CheckBoxDecks.Checked += (sender, args) => ConstructedSummary.UpdateContent(); ConstructedFilters.CheckBoxDecks.Unchecked += (sender, args) => ConstructedSummary.UpdateContent(); _initialized = true; }
private void MenuItemReset_OnClick(object sender, RoutedEventArgs e) { if (ContentControlFilter.Content is ArenaFilters) { ArenaFilters.Reset(); ArenaFilters = new ArenaFilters(UpdateCallBack); ContentControlFilter.Content = ArenaFilters; } else if (ContentControlFilter.Content is ConstructedFilters) { ConstructedFilters.Reset(); ConstructedFilters = new ConstructedFilters(UpdateCallBack); ContentControlFilter.Content = ConstructedFilters; ConstructedFilters.CheckBoxDecks.Checked += (s, args) => ConstructedSummary.UpdateContent(); ConstructedFilters.CheckBoxDecks.Unchecked += (s, args) => ConstructedSummary.UpdateContent(); } else { return; } UpdateStats(); }
private void MenuItemReset_OnClick(object sender, RoutedEventArgs e) { if(ContentControlFilter.Content is ArenaFilters) { ArenaFilters.Reset(); ArenaFilters = new ArenaFilters(UpdateCallBack); ContentControlFilter.Content = ArenaFilters; } else if(ContentControlFilter.Content is ConstructedFilters) { ConstructedFilters.Reset(); ConstructedFilters = new ConstructedFilters(UpdateCallBack); ContentControlFilter.Content = ConstructedFilters; ConstructedFilters.CheckBoxDecks.Checked += (s, args) => ConstructedSummary.UpdateContent(); ConstructedFilters.CheckBoxDecks.Unchecked += (s, args) => ConstructedSummary.UpdateContent(); } else return; UpdateStats(); }