protected void NewRubricCreator(object sender, EventArgs e) { CreateAssignmentForm assign = new CreateAssignmentForm(); assign.ShowDialog(); int assignID = dbConnention.AddAssignment(assign.assignment); // creates a new assignment into the database setCriteria(assign.CriteriaTree, -1, assignID); }
protected void NewRubricCreator(object sender, EventArgs e) { CreateAssignmentForm assign = new CreateAssignmentForm(); assign.ShowDialog(); // Set the Parent Form of the Child window. // newMDIChild.MdiParent = this; // Display the new form. if (assign.IsClosed == true) { int assignID = dbConnention.AddAssignment(assign.assignment); // creates a new assignment into the database setCriteria(assign.CriteriaTree, assignID); } }