/// <summary> /// 设置委托. /// </summary> /// <param name="iGetProgressRate">取得进度条进度事件委托(0.0f~1.0f).</param> /// <param name="iGetProgressState">取得进度条状态事件委托.</param> /// <param name="iGetTotalCount">取得总数事件委托.</param> /// <param name="iGetCompletedCount">取得完成总数事件委托.</param> public void SetDelegate( GetProgressRate iGetProgressRate, GetProgressState iGetProgressState, GetTotalCount iGetTotalCount, GetCompletedCount iGetCompletedCount) { this._getProgressRate = iGetProgressRate; this._getProgressState = iGetProgressState; this._getTotalCount = iGetTotalCount; this._getCompletedCount = iGetCompletedCount; }
public HomeController() { Db = new ApplicationDbContext(); getTotalNum = new GetTotalCount(Db); }