Example #1
0
        private void assignmentsProfileToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AssignmentsProfileForm ap = new AssignmentsProfileForm(ThisMember);

            ap.WindowState = FormWindowState.Normal;
            ap.Show();
        }
 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";
     }
 }
Example #3
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";
     }
 }
Example #4
0
 private void assignmentsProfileToolStripMenuItem_Click(object sender, EventArgs e)
 {
     AssignmentsProfileForm ap = new AssignmentsProfileForm(ThisMember);
     ap.WindowState = FormWindowState.Normal;
     ap.Show();
 }