Ejemplo n.º 1
0
        /// <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;
        }
Ejemplo n.º 2
0
 private void ExampleWindow_Load(object sender, EventArgs e)
 {
     control = Controller.GetInstance(this, 2);
 }