private void btn_add_Click(object sender, EventArgs e) { curr_index = -1; LoadAddEditForm ld_add = new LoadAddEditForm(this); ld_add.Owner = this; ld_add.ShowDialog(); }
private void btn_edit_Click(object sender, EventArgs e) { curr_index = listView1.SelectedIndices[0]; LoadAddEditForm gr_add = new LoadAddEditForm(this); gr_add.Owner = this; gr_add.ShowDialog(); }