private void создатьToolStripMenuItem_Click(object sender, EventArgs e) { NewSocialStatusForm form = new NewSocialStatusForm(); if (form.ShowDialog() == DialogResult.OK) { UpdateGrid(); } }
private void OpenSocialStatus() { if (dataGridView1.SelectedRows.Count > 0) { Status status = dataGridView1.SelectedRows[0].DataBoundItem as Status; NewSocialStatusForm form = new NewSocialStatusForm(status); if (form.ShowDialog() == DialogResult.OK) { UpdateGrid(); } } }