예제 #1
0
 private void updateButton_Click(object sender, EventArgs e)
 {
     DBUtils.updateStudent(selectedId, nameTextBox.Text.ToString(), lastNameTextBox.Text.ToString(), Double.Parse(feeTextBox.Text.ToString()));
     dataGridView1.DataSource = DBUtils.getStudents();
     clearTextBoxies();
 }
예제 #2
0
 private void searchButton_Click(object sender, EventArgs e)
 {
     dataGridView1.DataSource = DBUtils.searchStudent(searchTextBox.Text.ToString());
 }
예제 #3
0
 private void Form1_Load(object sender, EventArgs e)
 {
     dataGridView1.DataSource = DBUtils.getStudents();
 }