Exemple #1
0
        private void AutoBuildBtn_Click(object sender, EventArgs e)
        {
            AutoBuildForm autoBuildForm = new AutoBuildForm(AutoBuildForm.Mode.Deck);

            if (autoBuildForm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                EncounterDeck encounterDeck = EncounterBuilder.BuildDeck(autoBuildForm.Data.Level, autoBuildForm.Data.Categories, autoBuildForm.Data.Keywords);
                if (encounterDeck != null)
                {
                    this.fDeck          = encounterDeck;
                    this.LevelBox.Value = this.fDeck.Level;
                    this.DeckView.Deck  = this.fDeck;
                    this.DeckView_SelectedCellChanged(null, null);
                }
            }
        }
        private void AutoBuildBtn_Click(object sender, EventArgs e)
        {
            AutoBuildForm dlg = new AutoBuildForm(AutoBuildForm.Mode.Deck);

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                EncounterDeck deck = EncounterBuilder.BuildDeck(dlg.Data.Level, dlg.Data.Categories, dlg.Data.Keywords);
                if (deck != null)
                {
                    fDeck = deck;

                    LevelBox.Value = fDeck.Level;
                    DeckView.Deck  = fDeck;
                    DeckView_SelectedCellChanged(null, null);
                }
            }
        }