示例#1
0
        public void ExuciteFunction(string action)
        {
            string className  = actionList[action].Split(':')[0];
            string MethodName = actionList[action].Split(':')[1];

            switch (className)
            {
            case "jobplayer":
                jobplayer.GetType().GetMethod(MethodName).Invoke(jobplayer, new object[] { });
                break;

            case "searchBar":
                searchBar.GetType().GetMethod(MethodName).Invoke(searchBar, new object[] { });
                break;

            default:
                break;
            }
            //JobPlayer.Jobplay.GetType().GetMethod("HideOrShow_Home").Invoke(JobPlayer.Jobplay, new object[] {});
        }