private void AddPowerButton_Click(object sender, RoutedEventArgs e)
        {
            var dialog = new AskForResponseWindow("Power:");

            if (dialog.ShowDialog() == true)
            {
                powersList.Add(new ObservedString(dialog.ResponseText));
                lbPowerList.SelectedIndex = powersList.Count - 1;
            }
        }
        private void AddIncapButton_Click(object sender, RoutedEventArgs e)
        {
            var dialog = new AskForResponseWindow("Incap:");

            if (dialog.ShowDialog() == true)
            {
                incapList.Add(new ObservedString(dialog.ResponseText));
                lbIncapsList.SelectedIndex = incapList.Count - 1;
            }
        }
예제 #3
0
        private void AddIdentifierButton_Click(object sender, RoutedEventArgs e)
        {
            var dialog = new AskForResponseWindow("Initial Card Identifier:");

            if (dialog.ShowDialog() == true)
            {
                deckIdentifiers.Add(new ObservedString(dialog.ResponseText));
                lbInitialCardIdentifierList.SelectedIndex = deckIdentifiers.Count - 1;
            }
        }