Example #1
0
 //Used for creating intial assignment
 public Assignment(string AssignmentName, string Course, string Description, float PointValue, int Priority, DateTime DueDate)
 {
     this.assignmentName = AssignmentName;
     this.course         = Course;
     this.description    = Description;
     this.pointValue     = PointValue;
     this.priority       = Priority;
     this.dueDate        = DueDate;
     this.timeLeft       = this.dueDate - DateTime.Now;
     this.completed      = false;
     this.saveString     = String.Format("{0},{1},{2},{3},{4},{5},{6},{7}",
                                         this.assignmentName, this.course, this.description, this.pointValue,
                                         this.priority, this.dueDate, this.timeLeft, this.completed);
     this.assignmentLabel = new AssignmentDisplayLabel();
 }
Example #2
0
 public void setAssignmentDisplayLabel(AssignmentDisplayLabel label)
 {
     this.assignmentLabel = label;
     this.assignmentLabel.getCompleteButton().Click += new System.EventHandler(this.completeButton_Clicked);
 }