예제 #1
0
        private void Department_Load(object sender, EventArgs e)
        {
            ConnectionToRoom con = new ConnectionToRoom();

            String[] dt = new String[con.countDept];
            dt = con.lodeDepartment();

            //txtdStuId.Items.Add(dt);
            for (int i = 0; i < con.countDept; i++)
            {
                comDeptName.Items.Add(dt[i]);
                comBatchDeptName.Items.Add(dt[i]);
            }
        }
예제 #2
0
        private void Student_Load(object sender, EventArgs e)
        {
            Connection con = new Connection();

            String[] roll = new String[con.countRoll];
            roll = con.lodeStudentRoll();
            // Roll Load
            for (int i = 0; i < con.countRoll; i++)
            {
                txtdStuId.Items.Add(roll[i]);
                comafStudentId.Items.Add(roll[i]);
                comafSearchStuId.Items.Add(roll[i]);
                txtustuId.Items.Add(roll[i]);
            }
            String[] batch = new String[con.countBatch];
            batch = con.lodeStudentBatch();
            // Batch load
            for (int i = 0; i < con.countBatch; i++)
            {
                txtbatch.Items.Add(batch[i]);
                txtubatch.Items.Add(batch[i]);
            }
            String[] homeTown = new String[con.countHomeTown];
            homeTown = con.lodeStudentHomeTown();
            // home town
            for (int i = 0; i < con.countHomeTown; i++)
            {
                txthomeTown.Items.Add(homeTown[i]);
                txtuhome.Items.Add(homeTown[i]);
            }
            ConnectionToRoom conroom = new ConnectionToRoom();

            String[] dept = new String[conroom.countDept];
            dept = conroom.lodeDepartment();
            // department load
            for (int i = 0; i < conroom.countDept; i++)
            {
                txtdeptName.Items.Add(dept[i]);
                txtudept.Items.Add(dept[i]);
            }
        }