Esempio n. 1
0
        private void addBookButton_Click(object sender, EventArgs e)//添加书籍
        {
            BookShelf  shelf      = shelfBindingSource.Current as BookShelf;
            FormDetail formDetail = new FormDetail(this, shelf, currentClient);

            this.Hide();
            formDetail.ShowDialog();
        }
Esempio n. 2
0
        private void detailButton_Click(object sender, EventArgs e)//修改细节
        {
            BookShelf  shelf      = shelfBindingSource.Current as BookShelf;
            Book       book       = bookBindingSource.Current as Book;
            FormDetail formDetail = new FormDetail(this, book, currentClient);

            this.Hide();
            formDetail.ShowDialog();
        }
Esempio n. 3
0
        private void detailButton_Click(object sender, EventArgs e)//查看细节
        {
            Book book = bookBindingSource.Current as Book;

            if (book == null)
            {
                MessageBox.Show("请选择一本书进行操作!");
                return;
            }
            FormDetail formDetail = new FormDetail(this, book, currentClient);

            this.Hide();
            formDetail.ShowDialog();
        }