private void btnAddParent_Click(object sender, EventArgs e) { frmEditParent addParentForm = new frmEditParent("Add a Parent"); addParentForm.ShowDialog(); data = new DataContainer(); //Refresh Data from DB ChildToAdd.ParentsIDs[0] = data.parents[data.parents.Count - 1].ParentID; }
private void btnParentReportEdit_Click(object sender, EventArgs e) { frmEditParent editDialog = new frmEditParent("Edit Parent",parent); editDialog.ShowDialog(); }