Esempio n. 1
0
        private void EditDeckClick(object sender, RoutedEventArgs e)
        {
            var deck = (sender as Button).DataContext as MetaDeck;

            if (deck == null)
            {
                return;
            }
            if (deck.IsCorrupt)
            {
                return;
            }
            var de = new DeckBuilderWindow(deck);

            de.ShowDialog();
        }
Esempio n. 2
0
 private void EditDeckClick(object sender, RoutedEventArgs e)
 {
     var deck = (sender as Button).DataContext as MetaDeck;
     if (deck == null) return;
     if (deck.IsCorrupt) return;
     var de = new DeckBuilderWindow(deck);
     de.ShowDialog();
 }