private void bwAsync_WorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { DataProgress.Visible = DataProgress.IsRunning = false; mProgress.DoClose(); ProcessingType type = (ProcessingType)e.Result; switch (type) { case ProcessingType.LoadData: { //Refresh nhóm dịch vụ if (mThongTinDanhSachRoom == null || mThongTinDanhSachRoom.ThongTinDanhSachRoomID == 0) { UtilityListView.ListViewRefresh(ListViewNhomDichVu, mListThongTinDanhSachRoom); ListViewNhomDichVu.SelectedIndex = 0; } else { UtilityListView.ListViewRefresh(ListViewNhomDichVu, mListThongTinDanhSachRoom, mThongTinDanhSachRoom.ThongTinDanhSachRoomID.ToString(), 1); } } break; default: break; } }
private void bwAsync_WorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { DataProgress.Visible = DataProgress.IsRunning = false; mProgress.DoClose(); ProcessingType type = (ProcessingType)e.Result; switch (type) { case ProcessingType.LoadData: { UtilityListView.ListViewRefresh(mListViewData, mListUser); } break; case ProcessingType.PhanQuyenHome: case ProcessingType.PhanQuyenPhong: case ProcessingType.PhanQuyenThietBi: { bwAsync_Start(ProcessingType.LoadData); } break; default: break; } }
private void bwAsync_WorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { mProgress.DoClose(); ProcessingType type = (ProcessingType)e.Result; switch (type) { case ProcessingType.SaveData: { this.DialogResult = System.Windows.Forms.DialogResult.OK; this.Close(); } break; default: break; } }
private void bwAsync_WorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { DataProgress.Visible = DataProgress.IsRunning = false; mProgress.DoClose(); ProcessingType type = (ProcessingType)e.Result; switch (type) { case ProcessingType.LoadData: { UtilityListView.ListViewRefresh(mListViewData, mListDevice); } break; default: break; } }