/// <summary> /// 在后台线程中异步调用 获取数据的方法。 /// </summary> public AsynLoadDataHelper(MB.WinBase.IFace.IAsynClientQueryRule asynRule, bool isTotalPageDisplayed, bool isQueryAll) { _IsTotalPageDisplayed = isTotalPageDisplayed; _IsQueryAll = isQueryAll; _DataList = new SortedList <int, byte[]>(); _WorkThread = new MB.Util.AsynWorkThread(); _AsynQueryRule = asynRule; _AsynQueryRule.GetBufferByIndexCompleted += new EventHandler <MB.WinBase.Common.GetBufferByIndexCompletedEventArgs>(_AsynQueryRule_GetBufferByIndexCompleted); _WaitDialog = new WaitDialogForm(this); _WaitDialog.ClickCanceled += new EventHandler(_WaitDialog_ClickCanceled); _WaitProcessState = new MB.WinBase.Common.WorkWaitDialogArgs(); iniAsynWorkThread(); }
/// <summary> /// 在后台线程中异步调用 获取数据的方法。 /// </summary> public AsynLoadDataHelper(MB.WinBase.IFace.IAsynClientQueryRule asynRule, bool isTotalPageDisplayed) : this(asynRule, isTotalPageDisplayed, false) { }