private void создатьToolStripMenuItem_Click(object sender, EventArgs e) { RegClientForm form = new RegClientForm(); if (form.ShowDialog() == DialogResult.OK) { UpdateData(); } }
private void редактироватьToolStripMenuItem_Click(object sender, EventArgs e) { if (dataGridView1.SelectedRows.Count > 0) { Client client = dataGridView1.SelectedRows[0].DataBoundItem as Client; RegClientForm form = new RegClientForm(client); if (form.ShowDialog() == DialogResult.OK) { UpdateData(); } } }
private void btnregist_Click(object sender, EventArgs e) { RegClientForm form = new RegClientForm(); form.ShowDialog(); }