Ejemplo n.º 1
0
        private void buttonViewDB_Click(object sender, EventArgs e)
        { //Opens a new window with only a dataGridView, but this one can be double clicked to edit
            ViewDatabaseActivity viewDBAct = new ViewDatabaseActivity();

            viewDBAct.ShowDialog();
            this.studentsTableAdapter.Fill(this.sEPat_DataSet.Students);
        }
Ejemplo n.º 2
0
 private void buttonSearchNewWindow_Click(object sender, EventArgs e)
 { //opens new window (editable dataGridView) with a filter
     if (textBoxSearch.Text != "" && comboBoxSearchSelector.Text != "")
     {
         string filter = comboBoxSearchSelector.Text + " like \'*" + textBoxSearch.Text + "*\'";
         ViewDatabaseActivity viewFilteredDBAct = new ViewDatabaseActivity(filter);
         viewFilteredDBAct.ShowDialog();
     }
     else
     {
     }
 }