示例#1
0
        public BookList()
        {
            InitializeComponent();
            SQLGetList SQLGetList = new SQLGetList();


            BooksList.ItemsSource = SQLGetList.GetBookList();
        }
示例#2
0
        public Search(string user)
        {
            InitializeComponent();
            UserLable.Content = user;
            SQLGetList SQLGetList = new SQLGetList();

            AuthorBox.ItemsSource = SQLGetList.GetAuthorList();
            GenreBox.ItemsSource  = SQLGetList.GetGenreList();
        }
示例#3
0
        public ReportPage(string user)
        {
            InitializeComponent();
            SQLGetList SQLGetList = new SQLGetList();

            UserLable.Content = user;

            BooksList.ItemsSource = SQLGetList.GetReportList();
        }
示例#4
0
        public MyBookList(string user)
        {
            InitializeComponent();
            UserLable.Content = user;


            SQLGetList SQLGetList = new SQLGetList();


            BooksList.ItemsSource = SQLGetList.GetUserBookList(user);
        }
示例#5
0
 private void SearchButton_Click(object sender, RoutedEventArgs e)
 {
     if (!string.IsNullOrEmpty(ISBNBox.Text) || !string.IsNullOrEmpty(TitleBox.Text) || !string.IsNullOrEmpty(GenreBox.Text) || !string.IsNullOrEmpty(AuthorBox.Text))
     {
         SQLGetList SQLGetList = new SQLGetList();
         NavigationService.Navigate(new BookList(SQLGetList.SearchBook(ISBNBox.Text, TitleBox.Text, GenreBox.Text, AuthorBox.Text)));
     }
     else
     {
         ErrorLable.Visibility = Visibility.Visible;
     }
 }