private void getPakrovimasDisplay() { try { //FOR TESTS DataTable dta = pakrovimasRep.displayPakrovimas(); dataGridView6.DataSource = dta; //FOR TRANSPORT DataTable dta1 = transTestRep.displayTransTest(); dataGridView5.DataSource = dta1; } catch (Exception ex) { MessageBox.Show(ex.Message); } }
void getTransTest() { try { //FOR TESTS DataTable dta = transTestRep.displayTransTest(); dataGridView1.DataSource = dta; //FOR TRANSPORT DataTable dta1 = transportRep.displayTransportas(); dataGridView2.DataSource = dta1; } catch (Exception ex) { Console.WriteLine(ex); } }