Exemplo n.º 1
0
        public Form5(string cc, int i, student s)
        {
            InitializeComponent();
            ss  = s;
            ind = i;
            bool b = true;

            label1.Text = ss.specific_course(i, cc, ref b);
        }
        private void button1_Click_1(object sender, EventArgs e)
        {
            bool b = false;

            sd.specific_course(ind, textBox1.Text, ref b);
            if (b == false)
            {
                label2.Text = "Wrong code...Please Reenter code:";
                label2.Show();
            }
            else
            {
                this.Hide();

                Form5 f = new Form5(textBox1.Text, ind, sd);
                f.Show();
            }
        }