コード例 #1
0
ファイル: FormViewRoom.cs プロジェクト: war-man/GITHUB
 private void TimerSearch_Tick(object sender, EventArgs e)
 {
     if ((DateTime.Now - mLastSearch).TotalMilliseconds > 500)
     {
         UtilityListView.DoListViewFilter(mListViewData, txtSearch.Text);
         TimerSearch.Enabled = false;
     }
 }
コード例 #2
0
        private void TimerSearch_Tick(object sender, EventArgs e)
        {
            if ((DateTime.Now - mLastSearch).TotalMilliseconds > 500)
            {
                UtilityListView.DoListViewFilter(mListViewData, txtSearch.Text);
                if (String.IsNullOrEmpty(txtSearch.Text))
                {
                    //txtSearch.ButtonCustom.Image = global::Medibox.Properties.Resources.Find_16;
                }
                else
                {
                    //txtSearch.ButtonCustom.Image = global::Medibox.Properties.Resources.delete_16;
                }

                TimerSearch.Enabled = false;
            }
        }
コード例 #3
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);
                }
            }
        }
コード例 #4
0
 public static void DoFilter(this ObjectListView olv, String txtInput)
 {
     UtilityListView.DoListViewFilter(olv, txtInput);
 }