/// <summary> /// Retrieves the instance of the Controller object /// </summary> /// <param name="parent">The handle to the view</param> /// <param name="radius">Radius to draw everything at on the graph</param> /// <returns>A reference to the controller singleton</returns> public static Controller GetInstance(ExampleWindow parent, int radius) { if (instance == null) { instance = new Controller(parent, radius); } return instance; }
private void ExampleWindow_Load(object sender, EventArgs e) { control = Controller.GetInstance(this, 2); }