private void backgroundWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { this.Opacity = 1; myProgressDialog.Dispose(); if ((bool)e.Result) { listupdateView = new ListControl_PlacementStatus(this, studentListCopy); panel_main.Controls.Clear(); panel_main.Controls.Add(listupdateView); } else { Dialog_MyMessageBox.Show(Constant.REQUEST_UNPROCESSED, 1, UiColors.MESSAGE_ERROR); } pictureBox_home.Enabled = true; }
private void searchDetails() { if (!Utility.isNetworkAvailable()) { Dialog_MyMessageBox.Show(Validations.VALIDATION_NO_NETWORK, 1, UiColors.MESSAGE_ERROR); } else { string searchKey = textBox_search.Text; if (!string.IsNullOrWhiteSpace(searchKey)) { studentList = studentManager.loadStudentDetailsBySearchKey(searchKey); listupdateView = new ListControl_PlacementStatus(this, studentList); panel_main.Controls.Clear(); panel_main.Controls.Add(listupdateView); } } }