private void button2_Click(object sender, EventArgs e) { ChildEdirForm newForm = new ChildEdirForm(); newForm.ShowDialog(); RefreshChildList(); }
private void button4_Click(object sender, EventArgs e) { int chilID = (int)childListDataGridView.SelectedRows[0].Cells[0].Value; ChildEdirForm newForm = new ChildEdirForm(); foreach (ChildInfo child in _childList) { child.GetChild(chilID); newForm._newChild = child; } newForm.ShowDialog(); RefreshChildList(); }