public void azuriranjeKupca(object sender, EventArgs e)
        {
            Boolean proveraValidnosti = provera(ref txtImeKupca, ref txtPrezimeKupca, ref txtKorImeKupca,
                                                ref txtLozinkaKupca, ref txtDatumRođKupca, ref txtIdbrKupca, ref txtJMBGKupca, ref txtTelefonKupca);
            Boolean proveraValidnostiNovogIdbr = ValidacijaPodataka.validacijaIdbrAzuriranje(ref txtNoviIdbrKupca);

            if (proveraValidnosti == true && proveraValidnostiNovogIdbr == true)
            {
                Kupac k = new Kupac(txtImeKupca.Text, txtPrezimeKupca.Text, txtKorImeKupca.Text, txtLozinkaKupca.Text,
                                    txtDatumRođKupca.Text, int.Parse(txtIdbrKupca.Text), long.Parse(txtJMBGKupca.Text), txtTelefonKupca.Text);
                Administrator.azurirajKupca(int.Parse(txtNoviIdbrKupca.Text), ref k);
                cbSviKupci.Text       = "";
                txtIdbrKupca.Text     = "";
                txtImeKupca.Text      = "";
                txtPrezimeKupca.Text  = "";
                txtDatumRođKupca.Text = "";
                txtKorImeKupca.Text   = "";
                txtLozinkaKupca.Text  = "";
                txtTelefonKupca.Text  = "";
                txtJMBGKupca.Text     = "";
                cbSviKupci.Text       = "";
                txtNoviIdbrKupca.Text = "";
            }
            else
            {
                MessageBox.Show("Podaci o Kupcu nisu pravilno popunjeni ili novi IDBR Kupca nije validan!", "", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }
        public void azuriranjeAdminaSvojiPodaci(object sender, EventArgs e)
        {
            Boolean proveraValidnosti = ValidacijaPodataka.validacijaPodAdmina(ref txtIDBRAdmina, ref txtImeAdmina,
                                                                               ref txtPrezimeAdmina, ref txtKorImeAdmina, ref txtLozinkaAdmina, ref txtDatumRodjenjaAdmina, ref txtTitulaAdmina);
            Boolean proveraValidnostiNoviIdbr = ValidacijaPodataka.validacijaIdbrAzuriranje(ref txtNoviIDBRAdmina);

            if (proveraValidnosti == true && proveraValidnostiNoviIdbr == true)
            {
                Administrator a = new Administrator(txtImeAdmina.Text, txtPrezimeAdmina.Text, txtKorImeAdmina.Text,
                                                    txtLozinkaAdmina.Text, txtDatumRodjenjaAdmina.Text, int.Parse(txtIDBRAdmina.Text), txtTitulaAdmina.Text);
                a.azuriranjeSvojihPodataka(ref admin, int.Parse(txtNoviIDBRAdmina.Text));
                txtIDBRAdmina.Text          = "";
                txtImeAdmina.Text           = "";
                txtPrezimeAdmina.Text       = "";
                txtKorImeAdmina.Text        = "";
                txtLozinkaAdmina.Text       = "";
                txtDatumRodjenjaAdmina.Text = "";
                txtTitulaAdmina.Text        = "";
                txtNoviIDBRAdmina.Text      = "";
                cbTrenutniAdmini.Text       = "";
            }
            else
            {
                MessageBox.Show("Podaci o Administratoru nisu pravilno popunjeni ili novi IDBR Administratora nije validan!", "", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }
        public void azuriranjeAutomobila(object sender, EventArgs e)
        {
            Boolean proveraValidnosti = ValidacijaPodataka.validacijaNovogAutomobila(ref txtIDBR, ref txtMarka, ref txtModel,
                                                                                     ref txtGodiste, ref txtKubikaza, ref cbPogon, ref cbVrstaMenjaca, ref cbKaroserija, ref cbGorivo, ref cbBrojVrata);
            Boolean proveraValidnostiNovogIdbr = ValidacijaPodataka.validacijaIdbrAzuriranje(ref txtNoviIDBR);

            if (proveraValidnosti == true && proveraValidnostiNovogIdbr == true)
            {
                Automobil a = new Automobil(int.Parse(txtIDBR.Text), txtMarka.Text, txtModel.Text, int.Parse(txtGodiste.Text),
                                            int.Parse(txtKubikaza.Text), cbPogon.Text, cbVrstaMenjaca.Text, cbKaroserija.Text, cbGorivo.Text, int.Parse(cbBrojVrata.Text));
                a.azurirajAutomobil(int.Parse(txtNoviIDBR.Text));
                cbSviAutomobili.Text         = "";
                txtNoviIDBR.Text             = "";
                txtIDBR.Text                 = "";
                txtMarka.Text                = "";
                txtModel.Text                = "";
                txtGodiste.Text              = "";
                txtKubikaza.Text             = "";
                cbPogon.SelectedIndex        = -1;
                cbVrstaMenjaca.SelectedIndex = -1;
                cbKaroserija.SelectedIndex   = -1;
                cbGorivo.SelectedIndex       = -1;
                cbBrojVrata.SelectedIndex    = -1;
            }
            else
            {
                MessageBox.Show("Podaci o Automobilu nisu pravilno popunjeni ili novi IDBR Automobila nije validan!", "", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }