static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Connection con = new Connection(); Controller.Controller controller = new Controller.Controller(con); Form1 view = new Form1(controller); controller.co.AddObserver(view); Application.Run(view); }
public Form1(Controller.Controller ctrl) { InitializeComponent(); this.ctrl = ctrl; }