public ViewLevel(Controller.Game game, Model.ModelLevel levelModel)
        {
            InitializeComponent();

            //Set the gameController controller
            gameController = game;

            //Set the right model
            this.levelModel = levelModel;

            //Create the right amount of rows and columns
            setGrid();

            //Set the view to the right hight and width
            this.Width = levelModel.IWidth;
            this.Height = levelModel.IHeight;

            //Add a mousedown event to the grid
            mainGrid.MouseDown += new MouseButtonEventHandler(mainGrid_MouseDown);

            //Draw all the fields
            drawFields();

            //Draw the decoration images on the grid
            drawImages();
        }
        private void button1_Click_1(object sender, EventArgs e)
        {
            _g = new Controller.Game();

            _g.Start();
            richTextBox1.Lines =  _g.printNode();
            labelCountMoves.Text = _g._moves.ToString();
        }
 public MainForm()
 {
     InitializeComponent();
     _g = new Controller.Game();
     _g.Start();
     richTextBox1.Lines = _g.printNode();
     labelCountMoves.Text = _g._moves.ToString();
 }
        private void button1_Click_1(object sender, EventArgs e)
        {
            _g = new Controller.Game();

            _g.Start();
            richTextBox1.Lines   = _g.printNode();
            labelCountMoves.Text = _g._moves.ToString();
        }
 public MainForm()
 {
     InitializeComponent();
     _g = new Controller.Game();
     _g.Start();
     richTextBox1.Lines   = _g.printNode();
     labelCountMoves.Text = _g._moves.ToString();
 }
 public LoadGame(Controller.Game game)
 {
     this.game = game;
 }
        public Skip(Controller.Game game)
        {
            InitializeComponent();

            this.game = game;
        }