private void Drive_Click(object sender, EventArgs e) { SQ = new SequencePoints(); RobDrive = new Drive(); map = new Map(); SiG = new SearchInGraph(); }
private void Drive_Click(object sender, EventArgs e) { SQ = new SequencePoints(); RobDrive = new Drive(); map = new Map(); SiG = new SearchInGraph(); int mapWidthPxls = map.Xmax * (CellSize + 1) + 1, mapHeightPxls = map.Ymax * (CellSize + 1) + 1; pictureBox1.Image = new Bitmap(mapWidthPxls, mapHeightPxls); g = Graphics.FromImage(pictureBox1.Image); //}); }