/// <summary>
 /// given:  This constructor will be used when returning to frmStudent
 /// from another form.  This constructor will pass back
 /// specific information about the student and registration
 /// based on activites taking place in another form
 /// </summary>
 /// <param name="constructorData">Student data passed among forms</param>
 public frmStudent(ConstructorData constructorData)
 {
     InitializeComponent();
     this.constructorData = constructorData;
     this.studentNumberMaskedTextBox.Text = constructorData.student.StudentNumber.ToString();
     this.studentNumberMaskedTextBox_Leave(null, null);
 }
Пример #2
0
        /// <summary>
        /// given:  This constructor will be used when called from
        /// frmStudent.  This constructor will receive
        /// specific information about the student and registration
        /// further code required:
        /// </summary>
        /// <param name="client">specific client instance</param>
        /// <param name="account">specific bank account instance</param>
        public frmHistory(ConstructorData constructorData)
        {
            InitializeComponent();

            this.constructorData = constructorData;

            studentBindingSource.DataSource = constructorData.student;
        }
Пример #3
0
        /// <summary>
        /// given:  This constructor will be used when called from
        /// frmStudent.  This constructor will receive
        /// specific information about the student and registration
        /// further code required:
        /// </summary>
        /// <param name="client">specific client instance</param>
        /// <param name="account">specific bank account instance</param>
        public frmGrading(ConstructorData constructorData)
        {
            InitializeComponent();

            this.constructorData = constructorData;

            studentBindingSource.DataSource      = constructorData.student;
            registrationBindingSource.DataSource = constructorData.registration;
        }
Пример #4
0
        /// <summary>
        /// given:  This constructor will be used when returning to frmStudnet
        /// from another form.  This constructor will pass back
        /// specific information about the student and registration
        /// based on activites taking place in another form
        /// </summary>
        /// <param name="constructorData">Student data passed among forms</param>
        public frmStudent(ConstructorData constructorData)
        {
            InitializeComponent();

            this.constructorData = constructorData;

            studentNumberMaskedTextBox.Leave += new EventHandler(studentNumberMaskedTextBox_Leave);

            studentBindingSource.DataSource = constructorData.student;

            registrationBindingSource1.DataSource = constructorData.registration;

            studentNumberMaskedTextBox.Text = constructorData.student.StudentNumber.ToString();

            studentNumberMaskedTextBox_Leave(null, null);
        }
        /// <summary>
        /// given:  This constructor will be used when called from
        /// frmStudent.  This constructor will receive
        /// specific information about the student and registration
        /// further code required:
        /// </summary>
        /// <param name="student">specific student instance</param>
        /// <param name="registration">specific registration instance</param>
        public frmHistory(ConstructorData constructorData)
        {
            InitializeComponent();

            this.constructorData = constructorData;
        }
Пример #6
0
 /// <summary>
 /// given:  This constructor will be used when called from
 /// frmStudent.  This constructor will receive
 /// specific information about the student and registration
 /// further code required:
 /// </summary>
 /// <param name="student">specific student instance</param>
 /// <param name="registration">specific registration instance</param>
 public frmGrading(ConstructorData constructorData)
 {
     InitializeComponent();
     this.constructorData = constructorData;
 }