示例#1
0
        public static void ExeCommand(Dictionary <string, MethodParamObj> myDictParm, Form m, AbstCommand mnd)
        {
            showForm(ShowLoadForm, GlobalStaticObj.AppMainForm, LForm);
            // Thread  thread = new Thread(new ThreadStart(() =>
            // {
            //     mnd.MethodExec();
            //     closeForm(myFormClose, LForm);
            // }
            //));
            // thread.Start();
            FunctionDelegateHandler asyM = new FunctionDelegateHandler(mnd.MethodExec);

            asyM.BeginInvoke(myDictParm, CallBackMethod, null);
        }
示例#2
0
 public static void InvokeExeCommand <TKey, TValue>(Dictionary <string, MethodParamObj> myDictParm, Form m, AbstCommand mnd, out IDictionary <TKey, TValue> dict)
 {
     mnd.MethodExec(myDictParm, out dict);
 }
示例#3
0
 public static void InvokeExeCommand <T>(Dictionary <string, MethodParamObj> myDictParm, Form m, AbstCommand mnd, out IList <T> list)
 {
     mnd.MethodExec(myDictParm, out list);
 }
示例#4
0
 public static void InvokeExeCommand(Dictionary <string, MethodParamObj> myDictParm, Form m, AbstCommand mnd, out DataSet ds)
 {
     mnd.MethodExec(myDictParm, out ds);
 }
示例#5
0
        public static void ExeCommand <TKey, TValue>(Dictionary <string, MethodParamObj> myDictParm, Form m, AbstCommand mnd, out IDictionary <TKey, TValue> dict, AsyncCallback asyCall)
        {
            showForm(ShowLoadForm, GlobalStaticObj.AppMainForm, LForm);
            FunctionDictDelegateHandler <TKey, TValue> asyM = new FunctionDictDelegateHandler <TKey, TValue>(mnd.MethodExec <TKey, TValue>);

            asyM.BeginInvoke(myDictParm, out dict, asyCall, asyM);
        }
示例#6
0
        public static void ExeCommand(Dictionary <string, MethodParamObj> myDictParm, Form m, AbstCommand mnd, out DataSet ds, AsyncCallback asyCall)
        {
            showForm(ShowLoadForm, GlobalStaticObj.AppMainForm, LForm);
            FunctionDataSetDelegateHandler asyM = new FunctionDataSetDelegateHandler(mnd.MethodExec);

            asyM.BeginInvoke(myDictParm, out ds, asyCall, asyM);
        }