private void frmVlasnikSkladisteNovaSirovina_Load(object sender, EventArgs e)
        {
            frmPrijava nova = new frmPrijava();

            this.KeyPreview = true;
            this.KeyDown   += new KeyEventHandler(nova.Form1_KeyDown);
        }
        //Event handler gumba za odjavu
        private void btnOdjava_Click(object sender, EventArgs e)
        {
            this.Hide();
            frmPrijava odjavaPrijava = new frmPrijava();

            odjavaPrijava.Show();
        }
Пример #3
0
        private void frmVlasnikDodajNovogDobavljaca_Load(object sender, EventArgs e)
        {
            frmPrijava nova = new frmPrijava();

            this.KeyPreview = true;
            this.KeyDown   += new KeyEventHandler(nova.Form1_KeyDown);
        }
        //Ucitavanje forme te F1 pomoci
        private void frmGlavniPekarPocetna_Load(object sender, EventArgs e)
        {
            frmPrijava nova = new frmPrijava();

            this.KeyPreview = true;
            this.KeyDown   += new KeyEventHandler(nova.Form1_KeyDown);
        }
        private void frmSkladistarNovaIzdatnica_Load(object sender, EventArgs e)
        {
            this.zahtjevnica_sirovinaTableAdapter.FillIdZahtjevnicaIdSirovina(dataSetIzdatnice.zahtjevnica_sirovina, idZahtjevnica);
            frmPrijava nova = new frmPrijava();

            this.KeyPreview = true;
            this.KeyDown   += new KeyEventHandler(nova.Form1_KeyDown);
        }
Пример #6
0
 private void frmVlasnikNovaNarudzbenica_Load(object sender, EventArgs e)
 {
     // TODO: This line of code loads data into the 'dataSetSirovine.dobavljac2' table. You can move, or remove it, as needed.
     this.dobavljac2TableAdapter.FillByDobavljac(this.dataSetSirovine.dobavljac2);
     this.sirovina2TableAdapter.FillIdSirovineNarudzbenica(dataSetSirovine.sirovina2,idSirovine);
     frmPrijava nova = new frmPrijava();
     this.KeyPreview = true;
     this.KeyDown += new KeyEventHandler(nova.Form1_KeyDown);
 }
Пример #7
0
        //Event handler za ucitavanje forme i tableadaptera
        private void frmGlavniPekarSkladiste_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'dataSetSirovine.sirovina' table. You can move, or remove it, as needed.
            this.sirovinaTableAdapter.Fill(this.dataSetSirovine.sirovina);
            frmPrijava nova = new frmPrijava();

            this.KeyPreview = true;
            this.KeyDown   += new KeyEventHandler(nova.Form1_KeyDown);
        }
        private void frmVlasnikPopisOtpisnica_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'dataSetSirovine.otpisnica' table. You can move, or remove it, as needed.
            this.otpisnicaTableAdapter.Fill(this.dataSetSirovine.otpisnica);
            frmPrijava nova = new frmPrijava();

            this.KeyPreview = true;
            this.KeyDown   += new KeyEventHandler(nova.Form1_KeyDown);
        }
        private void frmSkladistarPopisNarudzbenica_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'dataSetZahtjevnice.zahtjevnica' table. You can move, or remove it, as needed.
            this.zahtjevnicaTableAdapter.Fill(this.dataSetZahtjevnice.zahtjevnica);
            frmPrijava nova = new frmPrijava();

            this.KeyPreview = true;
            this.KeyDown   += new KeyEventHandler(nova.Form1_KeyDown);
        }
Пример #10
0
        private void frmSkladistarKreirajNovuOtpisnicu_Load(object sender, EventArgs e)
        {
            btnDodajSirovinu.Enabled = false;
            btnOsvjezi.Enabled       = false;
            btnPotvrdi.Enabled       = false;
            frmPrijava nova = new frmPrijava();

            this.KeyPreview = true;
            this.KeyDown   += new KeyEventHandler(nova.Form1_KeyDown);
        }
        private void frmVlasnikKorisniciDodajNovog_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'dataSetUloge.uloga' table. You can move, or remove it, as needed.
            this.ulogaTableAdapter.Fill(this.dataSetUloge.uloga);
            // TODO: This line of code loads data into the 'dataSetKorisnici.korisnik' table. You can move, or remove it, as needed.
            this.korisnikTableAdapter.Fill(this.dataSetKorisnici.korisnik);
            frmPrijava nova = new frmPrijava();

            this.KeyPreview = true;
            this.KeyDown   += new KeyEventHandler(nova.Form1_KeyDown);
        }
Пример #12
0
        private void frmSkladistarPrimke_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'dataSetPrimke.primka2' table. You can move, or remove it, as needed.
            this.primka2TableAdapter.Fill(this.dataSetPrimke.primka2);
            // TODO: This line of code loads data into the 'dataSetPrimke.primka_sirovina' table. You can move, or remove it, as needed.
            this.primka_sirovina2TableAdapter.Fill(dataSetPrimke.primka_sirovina2, idPrimke);
            frmPrijava nova = new frmPrijava();

            this.KeyPreview = true;
            this.KeyDown   += new KeyEventHandler(nova.Form1_KeyDown);
        }
Пример #13
0
        //Ucitavanje forme te svih njezinih tableadaptera
        private void frmGlavniPekarZahtjevnice_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'dataSetIzdatnice.zahtjevnica' table. You can move, or remove it, as needed.
            this.zahtjevnicaTableAdapter1.FillIdZahtjevniceIdKorisnik(this.dataSetIzdatnice.zahtjevnica);
            // TODO: This line of code loads data into the 'dataSetZahtjevnice.zahtjevnica' table. You can move, or remove it, as needed.
            this.zahtjevnicaTableAdapter.Fill(this.dataSetZahtjevnice.zahtjevnica);
            frmPrijava nova = new frmPrijava();

            this.KeyPreview = true;
            this.KeyDown   += new KeyEventHandler(nova.Form1_KeyDown);
        }
        private void frmSkladistarKreiranjeZahtjevnice_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'dataSetSirovine.sirovina' table. You can move, or remove it, as needed.
            this.sirovinaTableAdapter.Fill(this.dataSetSirovine.sirovina);
            // TODO: This line of code loads data into the 'dataSetUloge.uloga' table. You can move, or remove it, as needed.
            this.zahtjevnicaTableAdapter1.Fill(this.dataSetZahtjevnice1.zahtjevnica);
            frmPrijava nova = new frmPrijava();

            this.KeyPreview = true;
            this.KeyDown   += new KeyEventHandler(nova.Form1_KeyDown);
        }
        private void frmVlasnikIzmjenaPodatakaDobavljac_Load(object sender, EventArgs e)
        {
            txtSifra.Text        = idDobavljac.ToString();
            txtNaziv.Text        = naziv;
            txtGrad.Text         = grad;
            txtEmail.Text        = email;
            txtBrojTelefona.Text = brojTelefona;
            frmPrijava nova = new frmPrijava();

            this.KeyPreview = true;
            this.KeyDown   += new KeyEventHandler(nova.Form1_KeyDown);
        }
Пример #16
0
        private void frmVlasnikIzmjeniSirovinu_Load(object sender, EventArgs e)
        {
            txtSifra.Text     = idSirovine.ToString();
            txtNaziv.Text     = naziv;
            txtJedinicna.Text = jedinicna;
            txtDostupna.Text  = dostupna.ToString();
            txtNapomena.Text  = napomena;
            frmPrijava nova = new frmPrijava();

            this.KeyPreview = true;
            this.KeyDown   += new KeyEventHandler(nova.Form1_KeyDown);
        }
        //Ucitavanje svih dataadaptera te F1 pomoci
        private void frmGlavniPekarKreirajNovuZahtjevnicu_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'dataSetZahtjevnice.zahtjevnica' table. You can move, or remove it, as needed.
            this.zahtjevnicaTableAdapter1.Fill(this.dataSetZahtjevnice1.zahtjevnica);
            // TODO: This line of code loads data into the 'dataSetSirovine.sirovina' table. You can move, or remove it, as needed.
            this.sirovinaTableAdapter.Fill(this.dataSetSirovine.sirovina);
            // TODO: This line of code loads data into the 'dataSetZahtjevnicaSirovina.zahtjevnica_sirovina' table. You can move, or remove it, as needed.
            this.zahtjevnica_sirovinaTableAdapter.Fill(this.dataSetZahtjevnicaSirovina.zahtjevnica_sirovina);
            this.zahtjevnica_sirovinaTableAdapter1.FillByNovaZahtjevnicaId(dataSetZahtjevnicaSirovinaDodajNovi1.zahtjevnica_sirovina, idZahtjevnice);
            frmPrijava nova = new frmPrijava();

            this.KeyPreview = true;
            this.KeyDown   += new KeyEventHandler(nova.Form1_KeyDown);
        }
Пример #18
0
        private void frmVlasnikPosaljiPoruku_Load(object sender, EventArgs e)
        {
            frmPrijava nova = new frmPrijava();

            this.KeyPreview = true;
            this.KeyDown   += new KeyEventHandler(nova.Form1_KeyDown);
            // TODO: This line of code loads data into the 'dataSetPoruke.primatelj_poruka' table. You can move, or remove it, as needed.
            this.primatelj_porukaTableAdapter.Fill(this.dataSetPoruke.primatelj_poruka);
            // TODO: This line of code loads data into the 'dataSetPoruke.posiljatelj_poruka' table. You can move, or remove it, as needed.
            this.posiljatelj_porukaTableAdapter.Fill(this.dataSetPoruke.posiljatelj_poruka);
            // TODO: This line of code loads data into the 'dataSetPoruke.poruka' table. You can move, or remove it, as needed.
            this.porukaTableAdapter.Fill(this.dataSetPoruke.poruka);
            // TODO: This line of code loads data into the 'dataSetPoruke.korisnik' table. You can move, or remove it, as needed.
            this.korisnikTableAdapter.Fill(this.dataSetPoruke.korisnik);
        }
Пример #19
0
        private void frmVlasnikKorisniciIzmjenaPodataka_Load(object sender, EventArgs e)
        {
            txtSifra.Text         = sifra.ToString();
            txtIme.Text           = ime;
            txtPrezime.Text       = prezime;
            txtKorisnickoIme.Text = korisnickoIme;
            txtEmail.Text         = email;
            txtLozinka.Text       = lozinka;
            txtBrojTelefona.Text  = brojTelefona;
            txtUloga.Text         = uloga;
            frmPrijava nova = new frmPrijava();

            this.KeyPreview = true;
            this.KeyDown   += new KeyEventHandler(nova.Form1_KeyDown);
        }
Пример #20
0
        private void frmSkladistarPoruke_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'dataSetPoruke.primatelj_poruka' table. You can move, or remove it, as needed.
            this.primatelj_porukaTableAdapter1.Fill(this.dataSetPoruke1.primatelj_poruka);
            // TODO: This line of code loads data into the 'dataSetPoruke.posiljatelj_poruka' table. You can move, or remove it, as needed.
            this.posiljatelj_porukaTableAdapter1.Fill(this.dataSetPoruke1.posiljatelj_poruka);
            // TODO: This line of code loads data into the 'dataSetPoruke.porukaPrikaz' table. You can move, or remove it, as needed.
            this.porukaPrikazTableAdapter1.FillByKorisnik(this.dataSetPoruke1.porukaPrikaz, 2);
            // TODO: This line of code loads data into the 'dataSetPoruke.poruka' table. You can move, or remove it, as needed.
            this.porukaTableAdapter1.Fill(this.dataSetPoruke1.poruka);
            this.porukaTableAdapter1.FillByIdKorisnika(dataSetPoruke1.poruka);
            frmPrijava nova = new frmPrijava();

            this.KeyPreview = true;
            this.KeyDown   += new KeyEventHandler(nova.Form1_KeyDown);
        }
Пример #21
0
        private void frmSkaldistarPopisIzdatnica_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'dataSetIzdatnice.zahtjevnica' table. You can move, or remove it, as needed.
            this.zahtjevnicaTableAdapter1.FillIdZahtjevniceIdKorisnik(this.dataSetIzdatnice.zahtjevnica);
            this.korisnikTableAdapter.FillByIzdatnicaKorisnik(dataSetIzdatnice.korisnik);
            this.zahtjevnica_sirovinaTableAdapter.FillIdZahtjevnicaIdSirovina(dataSetIzdatnice.zahtjevnica_sirovina, idZahtjevnica);
            this.sirovinaTableAdapter.Fill(dataSetIzdatnice.sirovina, idSelektiraneIzdatnice);
            frmPrijava nova = new frmPrijava();

            this.KeyPreview = true;
            this.KeyDown   += new KeyEventHandler(nova.Form1_KeyDown);
            if (dgvPopisZahtjevnica.RowCount == 1)
            {
                btnNovaIzdatnica.Enabled = true;
            }
            else
            {
                btnNovaIzdatnica.Enabled = false;
            }
        }