示例#1
0
        public ComController(IView view, Datamanipulation model)
        {
            this._myView = view;
            this._myModel = model;

            _myView.SetController(this);

            // Need to cast IView v TO MainForm. What for orders form ? =======
            this._myModel.Subscribe((MainForm)view);

            // Notify if the view is changed:
            this._myView.viewChanged += new ViewHandler<IView>(this.ViewChangeDetected);

            // ???
            // view.changed += new ViewHandler<IView>(this.CustomerAdded);
        }