public void ClickMenuItem(string strMenuInfo) { Logger.logBegin("ClickMenuItem " + MarsUFTAddins.IMars.tiger.ReflectorForCSharp.MarsTigerUtility.CombinePara("strMenuInfo", strMenuInfo)); /*** * 有两种menu Item模式。 * 1,Old模式,采用数字和部分key * 2,新模式,采用Menu开头 * ***/ E_TIGERMENU_CLICK eMenuMode = mGetClickMenuMode(strMenuInfo); switch (eMenuMode) { case E_TIGERMENU_CLICK.E_STARTWITH_MENU: mProcessStartWithMenuMode(strMenuInfo.Replace(MarsTigerServerConst.CNST_TOOLBAR_CLICK_PARA_PREFIX_MENU, "")); break; default: mProcessNumberMode(strMenuInfo); break; } Logger.logEnd("ClickMenuItem "); }
private E_TIGERMENU_CLICK mGetClickMenuMode(string strMenuInfo) { E_TIGERMENU_CLICK eResult = E_TIGERMENU_CLICK.E_OLD; if (MarsUFTAddins.IMars.tiger.ReflectorForCSharp.MarsTigerUtility.RegularExpressChecking(MarsTigerServerConst.CNST_TOOLBAR_CLICK_PARA_PREFIX_MENU_REG, strMenuInfo)) { return(eResult = E_TIGERMENU_CLICK.E_STARTWITH_MENU); } return(eResult); }