private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e) { AddDbUserForm aduf = new AddDbUserForm(postgreConnection); if(aduf.ShowDialog()== DialogResult.OK) { DrawData(); } }
private void addUserItem1_Click(object sender, EventArgs e) { AddDbUserForm aefForm = new AddDbUserForm(postgreConnection); aefForm.MdiParent = this; aefForm.Show(); }