Exemple #1
0
        /**
         * THREAD WALKER
         * @parem object fs
         * */
        private void groupFind(object ob)
        {
            MyThreadPoolArgs myArgs   = (MyThreadPoolArgs)ob;
            string           fs       = myArgs.findWhat;
            string           funcName = myArgs.FunctName;

            string FuncName = (string)funcName;

            switch (FuncName.ToUpper())
            {
            case "PEOPLE":
                string n = (string)fs;
                FindPeople(n);
                break;

            case "COMPANIES":
                string nc = (string)fs;
                FindCompanies(nc);
                break;

            case "INDUSTRY":
                string ni = (string)fs;
                FindIndustry(ni);
                break;

            case "TECHNOLOGY":
                string ntg = (string)fs;
                FindTechnology(ntg);
                break;

            case "PLACES":
                string np = (string)fs;
                FindPlaces(np);
                break;

            case "TOPICS":
                string nt = (string)fs;
                FindTopics(nt);
                break;

            case "DOCSUMMERY":
                string nd = (string)fs;
                FindDocSummery(nd);
                break;

            case "YEAR":
                string ny = (string)fs;
                FindYear(ny);
                break;

            case "DOCID":
                FindDocID(fs);
                break;

            default:
                string nsrc = (string)fs;
                GenralSearch(nsrc);
                break;
            }
        }
Exemple #2
0
        /**
         *  AMPLIFIDATAGROUP THREAD TASKS
         *  @Param string findwhat
         * */
        public void AmplifiDataGroups(string findwhat, string FuncName)
        {
            MyThreadPoolArgs myArgs = new MyThreadPoolArgs();

            myArgs.findWhat  = findwhat;
            myArgs.FunctName = FuncName;
            producer(myArgs);
        }