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 btnUnSelectAll_Click(object sender, EventArgs e) { foreach (Room data in mListRoom) { data.isSelected = false; } UtilityListView.ListViewRefresh(mListViewData, mListRoom); }
private void btnSelectAll_Click(object sender, EventArgs e) { foreach (Home data in mListHome) { data.isSelected = true; } UtilityListView.ListViewRefresh(mListViewData, mListHome); }
public FormSelectRoom(IList <int> list_id_selected, IList <Room> list_Room) { InitializeComponent(); this.Translate(); this.UpdateUI(); base.DoInit(); mListViewData.MaxDisplayNumber = -1; mListRoom = list_Room; if (list_id_selected != null) { mListRoom = mListRoom.Select(p => { p.isSelected = list_id_selected.Contains(p.RoomID); return(p); }).ToList(); } else { mListRoom = mListRoom.Select(p => { p.isSelected = false; return(p); }).ToList(); } UtilityListView.ListViewRefresh(mListViewData, mListRoom); }
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; } }
private void ListViewNhomDichVu_SelectedIndexChanged(object sender, EventArgs e) { mThongTinDanhSachRoom = ListViewNhomDichVu.SelectedObject as ThongTinDanhSachRoom; if (mThongTinDanhSachRoom != null) { //Refresh dịch vụ if (mRoom == null) { UtilityListView.ListViewRefresh(mListViewData, mThongTinDanhSachRoom.mListData); } else { UtilityListView.ListViewRefresh(mListViewData, mThongTinDanhSachRoom.mListData, mRoom.RoomID.ToString(), 0); } //Seach if (!String.IsNullOrEmpty(txtSearch.Text.Trim()) && mThongTinDanhSachRoom.mListData.Count > 0) { UtilityListView.DoListViewFilter(mListViewData, txtSearch.Text); } } }
public static void Refresh(this ObjectListView obj, IEnumerable datas, String text, int index) { UtilityListView.ListViewRefresh(obj, datas, text, index); }
public static void Refresh(this ObjectListView obj, IEnumerable datas) { UtilityListView.ListViewRefresh(obj, datas); }