Ejemplo n.º 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();
        }
Ejemplo n.º 2
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();
        }