예제 #1
0
        private void btnAdd_Click(object sender, System.EventArgs e)
        {
            FormBookInsert formBookInsert = new FormBookInsert();

            formBookInsert.ShowDialog();
            FormBookManage_Load(sender, e);
        }
예제 #2
0
        private void btnEdit_Click(object sender, System.EventArgs e)
        {
            if (dgvInfo.RowCount > 0)
            {
                FormBookInsert formBookInsert = new FormBookInsert();
                formBookInsert.op     = "Edit";
                formBookInsert.BookID = Convert.ToString(dgvInfo[0, dgvInfo.CurrentCell.RowIndex].Value).Trim();
                formBookInsert.Text   = "修改图书信息";

                formBookInsert.ShowDialog();
                FormBookManage_Load(sender, e);
            }
        }