internal void AttachController(GuiPresenter parent, GuiChildPresenter presenter, UserControl control) { var MyParentView = GetView(parent); var MyController = new WinChildController(presenter, MyParentView, control); SetView(presenter, MyController); }
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(); } }
//**************************************** void IWinController.Attach(WinChildController child) { child.GotFocus += OnGotChildFocus; child.LostFocus += OnLostChildFocus; }