virtual public bool ExcuteCommand(string _commandName) { bool _ret = false; foreach (Control _childControl in this.tableLayoutPanel1.Controls) { if (_childControl is SinoSZUC_PortalItemBase) { SinoSZUC_PortalItemBase _pc = _childControl as SinoSZUC_PortalItemBase; bool _exret = _pc.ExcuteCommand(_commandName); if (_exret) { _ret = true; } } } return(_ret); }
virtual public IList <FrmMenuGroup> GetMenuGroups() { IList <FrmMenuGroup> _ret = new List <FrmMenuGroup>(); foreach (Control _childControl in this.tableLayoutPanel1.Controls) { if (_childControl is SinoSZUC_PortalItemBase) { SinoSZUC_PortalItemBase _pc = _childControl as SinoSZUC_PortalItemBase; FrmMenuGroup _fg = _pc.GetMenuGroup(); if (_fg != null) { _ret.Add(_fg); } } } return(_ret); }