/// <summary> /// Creates a new simulation controller with a reference grid to plot points on. /// </summary> /// <param name="GridReference">The VisualizationGrid object you want the controller to plot points on</param> public Simulation(VisualizationGrid GridReference) { //Link the grid reference this.Grid = GridReference; //Initialize the update timer this.UpdateTimer = new System.Windows.Forms.Timer(); this.UpdateTimer.Interval = 1; //Link the handler for the update timer's "tick" this.UpdateTimer.Tick += UpdateTimer_Tick; }
public GridController(VisualizationGrid GridLink) { InitializeComponent(); this.GridLink = GridLink; }