private void Form1_MouseClick(object sender, MouseEventArgs e) { Rectangle rec = new Rectangle(); Brush brosse = new SolidBrush(Color.Black); rec.Height = 2; rec.Width = 2; Agent ajout = new Agent(); ajout.X = e.X; ajout.Y = e.Y; Sim.AjoutAgent(ajout); DisplayBlack(e.X, e.Y); G.FillRectangle(brosse, rec); }
public void AjoutAgent(Agent add) { maListe.Add(add); }