Example #1
0
        void autobuild_delve(bool advanced)
        {
            AutoBuildData data = null;

            if (advanced)
            {
                AutoBuildForm dlg = new AutoBuildForm(AutoBuildForm.Mode.Delve);
                if (dlg.ShowDialog() == DialogResult.OK)
                {
                    data = dlg.Data;
                }
                else
                {
                    return;
                }
            }
            else
            {
                data = new AutoBuildData();
            }

            PlotPoint pp = DelveBuilder.AutoBuild(SelectedMap, data);

            Session.Project.Plot.Points.Add(pp);
            Session.Modified = true;

            Close();
        }
Example #2
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);
                }
            }
        }
Example #3
0
        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);
                }
            }
        }
Example #4
0
        private void autobuild_delve(bool advanced)
        {
            AutoBuildData autoBuildDatum = null;

            if (!advanced)
            {
                autoBuildDatum = new AutoBuildData();
            }
            else
            {
                AutoBuildForm autoBuildForm = new AutoBuildForm(AutoBuildForm.Mode.Delve);
                if (autoBuildForm.ShowDialog() != System.Windows.Forms.DialogResult.OK)
                {
                    return;
                }
                autoBuildDatum = autoBuildForm.Data;
            }
            PlotPoint plotPoint = DelveBuilder.AutoBuild(this.SelectedMap, autoBuildDatum);

            Session.Project.Plot.Points.Add(plotPoint);
            Session.Modified = true;
            base.Close();
        }