Beispiel #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);
        }
Beispiel #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);
 }
Beispiel #3
0
 public static void InvokeExeCommand <T>(Dictionary <string, MethodParamObj> myDictParm, Form m, AbstCommand mnd, out IList <T> list)
 {
     mnd.MethodExec(myDictParm, out list);
 }
Beispiel #4
0
 public static void InvokeExeCommand(Dictionary <string, MethodParamObj> myDictParm, Form m, AbstCommand mnd, out DataSet ds)
 {
     mnd.MethodExec(myDictParm, out ds);
 }
Beispiel #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);
        }
Beispiel #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);
        }