protected virtual void db_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { this.closeAlertDialog(); if (this.notifyDBfinished != null) { DBFinishedEventArgs args = new DBFinishedEventArgs(); args.Result = this.result; args.Connection = this.con; this.notifyDBfinished(this, args); } }
private void NotifyDBfinishedHandler(object Sender, DBFinishedEventArgs e) { CelotApplication.Instance().ViewTransferEnable = true; this.Visible = false; switch(this.adminDao.QueryMode){ case QueryMode.SelectRows: this.adminCommandList = (List<AdminCommand>)e.Result; if(this.adminCommandList.Count > 0) { this.initAdminGridColumn(); foreach (AdminCommand adminCommand in this.adminCommandList) { this.AddRowToAdminGrid(adminCommand); } } else { this.adminGrid.Visible = false; } break; case QueryMode.Delete: case QueryMode.Update: case QueryMode.Insert: this.adminDao.GetAdminCommands(); break; } this.Visible = true; }
private void AdminGroup_Receive(object Sender, DBFinishedEventArgs e) { this.adminGroupList = (List<AdminGroup>)e.Result; this.initControll(); }