private void add_Click(object sender, EventArgs e)
 {
     button_add_form.Show();
     button_add_form.ClearText();
     this.Hide();
     button_add_form.Owner = this;
 }
Beispiel #2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            Form addForm = new AddForm();

            addForm.Show();
            addForm.FormClosed += (obj, args) => Update();
        }
Beispiel #3
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (listView.SelectedItems.Count != 0)
     {
         int  id      = (int)listView.SelectedItems[0].Tag;
         Form addForm = new AddForm(id);
         addForm.Show();
         addForm.FormClosed += (obj, args) => Update();
     }
 }