示例#1
0
        private void OpenExcelCompleted(IAsyncResult asyncResult)
        {
            if (asyncResult == null)
            {
                return;
            }
            //Action<Loading> updateAction = new Action<Loading>(LoadingClose);
            //loading.Dispatcher.BeginInvoke(updateAction, loading);
            List <DealListEntity> DLEL = (asyncResult.AsyncState as OpenDelegate).EndInvoke(asyncResult);
            InsertDBDelegate      i    = new InsertDBDelegate(InsertDB);

            i.Invoke(DLEL);
            //ShowNotifyMessage("成功读取" + DLEL.Count.ToString() + "条记录");
            //DBDataThreadController.DBDataThreadControllerHandler(DBSyncController.Handler()).DealListAdd(DLEL);
        }
示例#2
0
 private void OpenExcelCompleted(IAsyncResult asyncResult)
 {
     if (asyncResult == null) return;
     //Action<Loading> updateAction = new Action<Loading>(LoadingClose);
     //loading.Dispatcher.BeginInvoke(updateAction, loading);
     List<DealListEntity> DLEL = (asyncResult.AsyncState as OpenDelegate).EndInvoke(asyncResult);
     InsertDBDelegate i = new InsertDBDelegate(InsertDB);
     i.Invoke(DLEL);
     //ShowNotifyMessage("成功读取" + DLEL.Count.ToString() + "条记录");
     //DBDataThreadController.DBDataThreadControllerHandler(DBSyncController.Handler()).DealListAdd(DLEL);
 }