public class Car
{
public string StreetName;
public RectangleShape Car_Shape;
public int ArrivalTime, Axis, Lane;
public string Direction;
public double Car_Delay;
public bool Mobile;
public Stopwatch Sw = new Stopwatch();
public Car(int ArriT)
{
ArrivalTime = ArriT;
}
public void SetDelay()
{
}
}
This is the Code, I add every rectangular shape when creating an instance "Car" to a ShapeContainer on the main form, what I want to do is when I press on any of the shapes, data related to this shape are shown in a textbox, like "Direction", or "Delay" I tried to use delegation, I made an event but I can't pass the paramaters...
Thanks a lot