示例#1
0
        private void BtnNew_Click(object sender, EventArgs e)
        {
            Book    myBook = new Book();
            frmEdit myForm = new frmEdit(myBook, "new", cwid);

            if (myForm.ShowDialog() == DialogResult.OK)
            {
            }
            else
            {
                LoadList();
            }
        }
示例#2
0
        private void BtnEdit_Click(object sender, EventArgs e)
        {
            Book    myBook = (Book)BookList.SelectedItem;
            frmEdit myForm = new frmEdit(myBook, "edit", cwid);

            if (myForm.ShowDialog() == DialogResult.OK)
            {
            }
            else
            {
                LoadList();
            }
        }