internal void AttachController(GuiPresenter parent, GuiChildPresenter presenter, UserControl control)
        {
            var MyParentView = GetView(parent);

            var MyController = new WinChildController(presenter, MyParentView, control);

            SetView(presenter, MyController);
        }
Example #2
0
        private void OnLostChildFocus(object sender, EventArgs e)
        {
            _ActiveChild = ((WinChildController)sender).Parent as WinChildController;

            if (_Form == Form.ActiveForm)
            {
                _Provider.Toolkit.SwitchPresenter(_ActiveChild == null ? (GuiPresenter)this.Presenter : _ActiveChild.Presenter);

                RefreshChildBindings();
            }
        }
Example #3
0
        //****************************************

        void IWinController.Attach(WinChildController child)
        {
            child.GotFocus  += OnGotChildFocus;
            child.LostFocus += OnLostChildFocus;
        }