private void outbutton_Click(object sender, EventArgs e)
        {
            StudentsClass  clas = new StudentsClass(UserAccessForm.getdbserver(), UserAccessForm.getdbname(), UserAccessForm.getdbuser(), UserAccessForm.getdbpassword(), UserAccessForm.getdbport());
            MovementsClass cas  = new MovementsClass(UserAccessForm.getdbserver(), UserAccessForm.getdbname(), UserAccessForm.getdbuser(), UserAccessForm.getdbpassword(), UserAccessForm.getdbport());

            string user = UserAccessForm.getusername() + "_student_table";
            string orden;
            string control = datecontrol.Value.Day.ToString() + "/" + datecontrol.Value.Month.ToString() + "/" + datecontrol.Value.Year.ToString();

            if (actionbox.Text == "INSCRIBIR")
            {
                salida = "00/00/0000";
            }
            else
            {
                salida = birthDateBox.Value.Day.ToString() + "/" + birthDateBox.Value.Month.ToString() + "/" + birthDateBox.Value.Year.ToString();
            }
            string deuda;


            clas.ModifyData(user, namelabel.Text, salida, inscrito);

            StudentFormSearch menu = new StudentFormSearch();

            menu.WindowState = FormWindowState.Maximized;
            menu.Show();
            this.Close();
        }
        private void backbuttonstrip_Click(object sender, EventArgs e)
        {
            StudentFormSearch menu = new StudentFormSearch();

            menu.WindowState = FormWindowState.Maximized;
            menu.Show();
            this.Close();
        }
Esempio n. 3
0
        private void pictureBox5_Click(object sender, EventArgs e)
        {
            LoginClass create = new LoginClass(UserAccessForm.getdbserver(), UserAccessForm.getdbname(), UserAccessForm.getdbuser(), UserAccessForm.getdbpassword(), UserAccessForm.getdbport());

            create.CreateStudentTable(UserAccessForm.getusername());
            StudentFormSearch searchstudent = new StudentFormSearch();

            searchstudent.WindowState = FormWindowState.Normal;
            searchstudent.Show();
            this.Close();
        }