private void getApmokejimasDisplay()
        {
            try
            {
                //FOR TESTS
                DataTable dta = apmokRep.displayApmokejimas();
                dataGridView1.DataSource = dta;

                //FOR TESTS
                DataTable dta1 = nuomRep.displayNuoma();
                dataGridView2.DataSource = dta1;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Beispiel #2
0
        private void getKlientaiDisplay()
        {
            try
            {
                //FOR TESTS
                DataTable dta = usersRep.displayClients();
                dataGridView1.DataSource = dta;

                //FOR TESTS
                DataTable dta1 = galimiNuzRep.displayGalimiNusizengimai();
                dataGridView6.DataSource = dta1;

                //FOR TESTS
                DataTable dta2 = apmokRep.displayApmokejimas();
                dataGridView7.DataSource = dta2;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }