コード例 #1
0
ファイル: FormViewRoom.cs プロジェクト: war-man/GITHUB
        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;
            }
        }
コード例 #2
0
ファイル: FormViewUser.cs プロジェクト: war-man/GITHUB
        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;
            }
        }
コード例 #3
0
 private void btnUnSelectAll_Click(object sender, EventArgs e)
 {
     foreach (Room data in mListRoom)
     {
         data.isSelected = false;
     }
     UtilityListView.ListViewRefresh(mListViewData, mListRoom);
 }
コード例 #4
0
ファイル: FormSelectHome.cs プロジェクト: war-man/GITHUB
 private void btnSelectAll_Click(object sender, EventArgs e)
 {
     foreach (Home data in mListHome)
     {
         data.isSelected = true;
     }
     UtilityListView.ListViewRefresh(mListViewData, mListHome);
 }
コード例 #5
0
        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);
        }
コード例 #6
0
ファイル: FormViewDevice.cs プロジェクト: war-man/GITHUB
        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;
            }
        }
コード例 #7
0
ファイル: FormViewRoom.cs プロジェクト: war-man/GITHUB
        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);
                }
            }
        }
コード例 #8
0
 public static void Refresh(this ObjectListView obj, IEnumerable datas, String text, int index)
 {
     UtilityListView.ListViewRefresh(obj, datas, text, index);
 }
コード例 #9
0
 public static void Refresh(this ObjectListView obj, IEnumerable datas)
 {
     UtilityListView.ListViewRefresh(obj, datas);
 }