Exemple #1
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            Book    myBooks = (Book)lstBooks.SelectedItem;
            frmEdit myForm  = new frmEdit(myBooks, "edit", cwid);


            if (myForm.ShowDialog() == DialogResult.OK)
            {
            }
            else
            {
                LoadList();
            }
        }
Exemple #2
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            Book    myBooks = new Book();
            frmEdit myForm  = new frmEdit(myBooks, "new", cwid);


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