Пример #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();
     }
 }
        private void button5_Click(object sender, EventArgs e)
        {
            AddStudent ass = new AddStudent();

            ass.Show();
        }
Пример #3
0
        private void btnAddStu_Click(object sender, EventArgs e)
        {
            AddStudent a = new AddStudent();

            a.ShowDialog();
        }