Ejemplo n.º 1
0
 private void DeckPickerList_OnOnDoubleClick(DeckPicker sender, Deck deck)
 {
     if (deck == null)
     {
         return;
     }
     SetNewDeck(deck, true);
 }
 private void DeckPickerList_OnOnDoubleClick(DeckPicker sender, Deck deck)
 {
     if (deck?.Equals(DeckList.Instance.ActiveDeck) ?? true)
     {
         return;
     }
     SelectDeck(deck, true);
 }
        private void DeckPickerList_OnSelectedDeckChanged(DeckPicker sender, List <Deck> decks)
        {
            if (decks?.Any() ?? false)
            {
                SelectDeck(decks.FirstOrDefault(), Config.Instance.AutoUseDeck);
            }
            var active = DeckList.Instance.ActiveDeck;

            MainWindowMenu.SelectedDecks = (!decks?.Any() ?? false) && active != null ? new List <Deck> {
                active
            } : decks;
        }
        private void DeckPickerList_OnSelectedDeckChanged(DeckPicker sender, List <Deck> decks)
        {
            var active = DeckList.Instance.ActiveDeck;

            MainWindowMenu.SelectedDecks = (!decks?.Any() ?? false) && active != null ? new List <Deck> {
                active
            } : decks;

            var deck = decks?.FirstOrDefault() ?? active;

            SelectDeck(deck, Config.Instance.AutoUseDeck);
            DeckCharts.SetDeck(deck);
            HsReplayDeckInfo.SetDeck(deck);
        }
Ejemplo n.º 5
0
 private void DeckPickerList_OnSelectedDeckChanged(DeckPicker sender, Deck deck)
 {
     SelectDeck(deck, Config.Instance.AutoUseDeck);
     UpdateMenuItemVisibility();
 }
		private void DeckPickerList_OnOnDoubleClick(DeckPicker sender, Deck deck)
		{
			if(deck == null)
				return;
			SetNewDeck(deck, true);
		}
		private void DeckPickerList_OnSelectedDeckChanged(DeckPicker sender, Deck deck)
		{
			SelectDeck(deck, Config.Instance.AutoUseDeck);
		}
		private void DeckPickerList_OnSelectedDeckChanged(DeckPicker sender, Deck deck)
		{
			SelectDeck(deck, false);
		}
Ejemplo n.º 9
0
 private void DeckPickerList_OnSelectedDeckChanged(DeckPicker sender, Deck deck)
 {
     SelectDeck(deck, Config.Instance.AutoUseDeck);
 }