コード例 #1
0
 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;
 }
コード例 #2
0
 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();
 }
コード例 #3
0
		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();
		}