예제 #1
0
        private object loadSearch(string text)
        {
            switch (selectedTable)
            {
            case TblEnums.Book:
                return(libraryapp.FindBook(text));

            case TblEnums.Account:
                return(libraryapp.FindAccount(text));

            case TblEnums.Borrow:
                return(libraryapp.FindBorrowHistory(text));

            default:
                throw new NotImplementedException();
            }
        }
예제 #2
0
 private void loadSearch(string text)
 {
     dataGridView1.DataSource = libraryapp.FindBorrowHistory(text);
 }