/// <summary> /// Register a controller. /// </summary> /// <param name="_controllerUI">Controller to be registered.</param> public void register(IControllerUI _controllerUI) { if (_controllerUI == null) { throw new ControllerPassedToServiceIsNull(); } this.controllerUI = _controllerUI; }
/// <summary> /// Register the controller in the service. /// </summary> /// <param name="_controllerUI">Controller object to be registered.</param> public void register(IControllerUI _controllerUI) { // Throw exception if the controller passed is null. if (_controllerUI == null) { throw new ControllerPassedToServiceIsNull(); } this.controllerUI = _controllerUI; }
private void OnListCreateUI() { if (uiCreator != null) { IControllerUI controllerUI = uiCreator.Create(this, false); _listUI = controllerUI; controllerUI.UIDataBound += new EventHandler(controllerUI_ListUIDataBound); controllerUI.UIKeyDown += new System.Windows.Forms.KeyEventHandler(controllerUI_UIKeyDown); controllerUI.UIKeyUp +=new System.Windows.Forms.KeyEventHandler(controllerUI_UIKeyUp); } }