Esempio n. 1
0
        private void btn_show_student_Click(object sender, EventArgs e)
        {
            this.Hide();
            ShowStudents obj = new ShowStudents();

            obj.tb_students_list.Text = StudentController.Show();
            obj.ShowDialog();
            this.Close();
        }
        public DataTable GetStu()
        {
            ShowStudents ss = new ShowStudents();

            return(ss.Read());
        }
        private void HomeForm_Load(object sender, EventArgs e)
        {
            ShowStudents showStudents = new ShowStudents();

            dgvStudents.DataSource = showStudents.GetStudents();
        }