public frmParentReport(Parent parent) { InitializeComponent(); //this.Text = title; this.parent = parent; data = new DataContainer(); }
public frmParentReport(Parent parent, DataContainer data) { InitializeComponent(); //this.Text = title; this.parent = parent; this.data = data; }
public frmMainMenu() { InitializeComponent(); data = new DataContainer(); db = new Database(); childIDList = new List<int>(); staffIDList = new List<string>(); parentIDList = new List<int>(); contactIDList = new List<int>(); //data.loadItems(); }
private void btnAddMedical_Click(object sender, EventArgs e) { new frmMedicalInformation().ShowDialog(); data = new DataContainer(); }
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; }
//TODO: Make Child Form so we can keep reference to created Parent private void btnAddEC_Click(object sender, EventArgs e) { new frmEditParent("Add an Emergency Contact").ShowDialog(); data = new DataContainer(); //Refresh Data from DB ChildToAdd.EmergencyContactsIDs[0] = data.contacts[(data.contacts.Count - 1)].ContactID; }
private void btnEdit_Click(object sender, EventArgs e) { frmEditChild editForm = new frmEditChild(child); editForm.ShowDialog(); data = new DataContainer(); }
public frmChildReport(Child childtoDisplay,DataContainer data) { InitializeComponent(); child = childtoDisplay; this.data = data; }
public frmChildReport(Child childtoDisplay) { InitializeComponent(); child = childtoDisplay; data = new DataContainer(); }
private void btnAddStaff_Click(object sender, EventArgs e) { new frmEditEmployee().ShowDialog(); data = new DataContainer(); }
//Add new persons to database... private void btnAddParent_Click(object sender, EventArgs e) { new frmEditParent("Add a Parent").ShowDialog(); data = new DataContainer(); }
private void btnAddChild_Click(object sender, EventArgs e) { new frmEditChild().ShowDialog(); data = new DataContainer(); }
private void button1_Click(object sender, EventArgs e) { data = new DataContainer(); //Refresh children lstChildren.Items.Clear(); childIDList = new List<int>(); foreach (Child child in data.children) { lstChildren.Items.Add(child.FirstName + " " + child.LastName); childIDList.Add(child.ChildID); } //Refresh parents lstParents.Items.Clear(); parentIDList = new List<int>(); foreach (Parent parent in data.parents) { lstParents.Items.Add(parent.FirstName + " " + parent.LastName); parentIDList.Add(parent.ParentID); } //refresh staff lstStaff.Items.Clear(); staffIDList = new List<string>(); foreach (Employee employee in data.employees) { lstStaff.Items.Add(employee.FirstName + " " + employee.LastName); staffIDList.Add(employee.NINo); } }