Ejemplo n.º 1
0
 private void btnUpdate_Click(object sender, EventArgs e)
 {
     if (this.dtype == DataType.Books)
     {
         string  id = this.dataGridView1.Rows[dataGridView1.SelectedRows[0].Index].Cells["ISBN"].Value.ToString();
         AddBook b  = new AddBook(id);
         b.Text = "修改图书";
         b.ShowDialog();
     }
     else if (this.dtype == DataType.Borrow)
     {
         return;
     }
     else if (this.dtype == DataType.Students)
     {
         string     id = this.dataGridView1.Rows[dataGridView1.SelectedRows[0].Index].Cells["图书证号"].Value.ToString();
         AddStudent s  = new AddStudent(id);
         s.Text = "修改学生";
         s.ShowDialog();
     }
 }
Ejemplo n.º 2
0
        private void btnAddBook_Click(object sender, EventArgs e)
        {
            AddBook b = new AddBook();

            b.ShowDialog();
        }