Example #1
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            Book myBook = (Book)Books.SelectedItem;

            frmEdit2 myForm = new frmEdit2(myBook, "edit", cwid);

            if (myForm.ShowDialog() == DialogResult.OK)
            {
            }
            else
            {
                LoadList();
            }
        }
Example #2
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            Book myBook = new Book();

            frmEdit2 myForm = new frmEdit2(myBook, "new", cwid);

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