public form() { InitializeComponent(); refreshPointer pointer = new refreshPointer(RefreshAllEvent); world = (new Controller.Controller()).LoadWorld(new int[] { 20, 20 }, new int[] { 10, 10, 0, 0 }, new int[] { 10, 10, 0, 10, 10, 10, 10, 10, 10 }, new int[] { 10, 10, 10, 0 }, 5, 2, 2, pointer); //label1.Text = "coucou"; label1.Text = ""; }
public Vue1() { InitializeComponent(); Controller.World test = (new Controller.Controller()).LoadWorld(new int[] { 20, 20 }, new int[] { 10, 10, 0, 0 }, new int[] { 10, 10, 0, 10, 10, 10, 10, 10, 10 }, new int[] { 10, 10, 10, 0 }, 5, 2, 2); dataGridView1.Dock = DockStyle.Fill; dataGridView1.AutoGenerateColumns = true; FillDataGridView(test.GenerateGridView()); }