/// <summary>process "selection" event</summary> /// <param name = "val">the value of the control </param> /// <param name = "guiMgCtrl">the control </param> /// <param name = "line"> the line of the multiline control </param> /// <param name = "produceClick">TODO </param> internal void processSelection(String val, GuiMgControl guiMgCtrl, int line, bool produceClick) { var mgControl = (MgControl)guiMgCtrl; if (mgControl.Type == MgControlType.CTRL_TYPE_BUTTON && mgControl.getForm().getTask().getLastParkedCtrl() != mgControl) { produceClick = true; } var rtEvt = new RunTimeEvent(mgControl, line, true); rtEvt.setInternal(InternalInterface.MG_ACT_SELECTION); rtEvt.setValue(val); rtEvt.setProduceClick(produceClick); ClientManager.Instance.EventsManager.addToTail(rtEvt); }