private void btn_c_stdSearch_Click(object sender, EventArgs e) { HandleException(() => { List <Students> students = stdOpr.Show(tb_c_stdNumber.Text); dgv_info.DataSource = students; table = "rent_students"; }); }
private void ListItems() { List <Students> students = stdOpt.Show(); dgv_students.DataSource = students; }