示例#1
0
 public AssignmentForm(Member scheduler, AssignmentsProfileForm apf, int?assignmentId)
 {
     InitializeComponent();
     Scheduler             = scheduler;
     assignmentProfileForm = apf;
     if (assignmentId != null)
     {
         int ai = Convert.ToInt32(assignmentId);
         AssignmentUpdate = manager.AssignmentByAssignmentId(ai);
         this.AssignmentNameTextBox.Text        = AssignmentUpdate.Label;
         this.DescriptionTextBox.Text           = AssignmentUpdate.Description;
         this.AmountPerMeetingPicker.Value      = Convert.ToDecimal(AssignmentUpdate.AmountPerMeeting);
         this.schedulePositionPicker.Value      = Convert.ToDecimal(AssignmentUpdate.PositionOnSchedule);
         this.CreateUpdateAssignmentButton.Text = "Update Assignment";
     }
 }