Example #1
0
 protected void NewRubricCreator(object sender, EventArgs e)
 {
     CreateRubricForm newRubric = new CreateRubricForm();
     // Set the Parent Form of the Child window.
        // newMDIChild.MdiParent = this;
     // Display the new form.
     newRubric.Show();
 }
        private void acceptbtn_Click(object sender, EventArgs e)
        {
            a_name = this.a_name_textbox.Text;
            d_date = String.Format("{0:G}", d_date_box.Value);
            assignment.Name = a_name;
            assignment.DueDate = DateTime.Parse(d_date);

            CreateRubricForm newRubric = new CreateRubricForm();
            newRubric.ROOTNODE = new CriteriaNode(a_name);
            this.Hide();
            newRubric.ShowDialog();

            if (newRubric.SaveCriteria == true)
            {
                CriteriaTree = newRubric.CriteriaTree;
            }

            this.Close();
        }