private void OrgGridView_CellContentClick(object sender, DataGridViewCellEventArgs e) { var form = new OrganizationSingle(SelectedOrganization()); var result = form.ShowDialog(); if (result == DialogResult.Yes) { OrganizationsData.RenewDataTable(); } }
private void NewCompany_Click(object sender, EventArgs e) { OrganizationSingle form = new OrganizationSingle(); var result = form.ShowDialog(); Show(); if (result == DialogResult.Yes) { OrganizationsData.RenewDataTable(); } }