Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public Form1(Controller.Controller ctrl)
 {
     InitializeComponent();
     this.ctrl = ctrl;
 }