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"; } }
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"; } }