Exemple #1
0
        private void Open_Click(object sender, EventArgs e)
        {
            DataTable dt = std.Get_Courses(Project_Sce.CodeLayer.StudentID_txt.Text);

            try
            {
                if (dt.Rows.Count > 0)
                {
                    StudentSectionDirect st = new StudentSectionDirect(Project_Sce.CodeLayer.StudentID_txt.Text);
                    st.ShowDialog();
                }
            }
            catch (Exception exp)
            {
                MessageBox.Show("Incorrect ID", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
            StudentID_txt.Clear();
        }
 public StudentSectionDirect()
 {
     InitializeComponent();
     this.dataGridView1.DataSource = std.Get_Courses(Id);
 }