private static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); view = new Front(); control = new Control(ref view); Application.Run(view); }
/// <summary> /// Constructor, takes reference for view object /// </summary> /// <remarks>Makes a reference in the view object passed to this control. /// This connection cannot be broken, a new controller object is created</remarks> /// <param name="view">The view reference for interface</param> internal Control(ref Front view) { this.view = view; view.Control = this; }