Beispiel #1
0
        protected virtual void CreateEnvironment(SizeSelectorForm sizeSeclector)
        {
            var environment = new TestEnvironment();

            environment.CreateCells(sizeSeclector.NumRows + 2, sizeSeclector.NumCols + 2);
            this.SetWallsAroundEnvironment(environment);
            this.LoadEnvironment(environment);
        }
Beispiel #2
0
        private void NewToolStripMenuItemClick(object sender, EventArgs e)
        {
            var sizeSelectorForm = new SizeSelectorForm();

            this.ShowForm(sizeSelectorForm);

            if (sizeSelectorForm.DialogResult != DialogResult.OK)
            {
                return;
            }

            this.CreateEnvironment(sizeSelectorForm);
        }