Beispiel #1
0
        public void DirectCall(fNo_Rtn_Param_Three f, object[] szParam)
        {
            List <Object> listParam = new List <object>();

            listParam.Add(f);
            foreach (object p in szParam)
            {
                listParam.Add(p);
            }

            AsyncExecute(InnerRunDelegate, listParam);
        }
Beispiel #2
0
        protected void InnerRunDelegate(object p)
        {
            List <Object> listParam = p as List <Object>;

            if (listParam.Count == 2)
            {
                fNo_Rtn_Param_One tmpFunction = (fNo_Rtn_Param_One)listParam[0];

                listParam.Remove(tmpFunction);
                ownerView.Invoke(tmpFunction, listParam.ToArray());
            }
            else if (listParam.Count == 3)
            {
                fNo_Rtn_Param_Two tmpFunction = (fNo_Rtn_Param_Two)listParam[0];
                listParam.Remove(tmpFunction);
                ownerView.Invoke(tmpFunction, listParam.ToArray());
            }
            else if (listParam.Count == 4)
            {
                fNo_Rtn_Param_Three tmpFunction = (fNo_Rtn_Param_Three)listParam[0];
                listParam.Remove(tmpFunction);
                ownerView.Invoke(tmpFunction, listParam.ToArray());
            }
        }