private void tsbtnOrgAdd_Click(object sender, EventArgs e) { OrgAddEditForm add = new OrgAddEditForm(); if (add.ShowDialog() == DialogResult.OK) { Refresh_OrganizationsDataGridView(); } }
private void btnEditInfo_Click(object sender, EventArgs e) { OrgAddEditForm edit = new OrgAddEditForm(idOO); if (edit.ShowDialog() == DialogResult.OK) { orgMore = new OrgMore(int.Parse(edit.tbOOCode.Text)); OrgMoreForm_Load(sender, e); } }
private void tsbtnOrgEdit_Click(object sender, EventArgs e) { if (dgvOrg.SelectedRows.Count > 0) { int idOO = int.Parse(dgvOrg.SelectedRows[0].Cells[3].Value.ToString()); OrgAddEditForm edit = new OrgAddEditForm(idOO); if (edit.ShowDialog() == DialogResult.OK) { Refresh_OrganizationsDataGridView(); } } }