Beispiel #1
0
        private void txtget_Click(object sender, EventArgs e)
        {
            // the following code
            string ct = CAP2.getsn();

            txtstdname2.Text = ct;

            int cno = CAP2.getcours();

            txtenrolled2.Text = Convert.ToString(cno);

            DateTime dttime = CAP2.getstartdate();

            txtstartdate.Text = Convert.ToString(dttime);

            string type1 = CAP2.gettype();

            txtclasstype.Text = type1;
        }
Beispiel #2
0
        private void txtget_Click(object sender, EventArgs e)
        {
            // the following code is used to get values of the entered data from the second class.
            string ct = CAP2.getsn();

            txtstdname2.Text = ct;

            int cno = CAP2.getcours();

            txtenrolled2.Text = Convert.ToString(cno);

            DateTime dttime = CAP2.getstartdate();

            txtstartdate.Text = Convert.ToString(dttime);

            string type1 = CAP2.gettype();

            txtclasstype.Text = type1;

            string t = CAP2.getcrsno();

            txtcoursename2.Text = t;
        }