Exemplo n.º 1
0
        private void button_Load_Click(object sender, EventArgs e)
        {
            //TODO: Change so loads from a dialogue box.
            DialogResult result = openFileDialog1.ShowDialog();

            if (result == DialogResult.OK)
            {
                _gameFile = new GameFile(openFileDialog1.FileName);

                //textBox_Cols.Text = "" + _gameFile.Grid.NumCols;
                //textBox_Rows.Text = "" + _gameFile.Grid.NumRows;

                button_Save.Enabled = true;
                panel_Main.Invalidate();
                panel_BoxDisplay.Invalidate();

                this.Text = openFileDialog1.SafeFileName + " - " + _AppName;
            }
        }
Exemplo n.º 2
0
 public Solver(GameFile gameFile)
 {
     _gameFile = gameFile;
 }