Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
            }
        }
Ejemplo n.º 3
0
 private void CreateRubricForm_Load(object sender, EventArgs e)
 {
     CreateAssignmentForm assign = new CreateAssignmentForm();
     assign.Show();
     assignment.Name = assign.a_name;
     assignment.DueDate = DateTime.Parse(assign.d_date);
     ROOTNODE.Text = assign.a_name;
     CriteriaDisplay.Nodes.Add(ROOTNODE);
     this.CriteriaDisplay.ItemDrag += new System.Windows.Forms.ItemDragEventHandler(this.treeView_ItemDrag);
     this.CriteriaDisplay.DragEnter += new System.Windows.Forms.DragEventHandler(this.treeView_DragEnter);
     this.CriteriaDisplay.DragDrop += new System.Windows.Forms.DragEventHandler(this.treeView_DragDrop);
 }