Ejemplo n.º 1
0
        private void btnLogIn_Click(object sender, EventArgs e)
        {
            if (dgvFarmaceuti.SelectedRows.Count == 0)
            {
                return;
            }
            int selectedRow = dgvFarmaceuti.SelectedRows[0].Index;
            int idFRM       = (int)dgvFarmaceuti["ID", selectedRow].Value;

            if (!(proveraId_a(idFRM) == (Convert.ToInt32(tbxID.Text))) || String.IsNullOrWhiteSpace(tbxID.Text) == true)
            {
                MessageBox.Show("PogresanID");
                return;
            }
            else
            {
                //MessageBox.Show("Prijavlen si");
                FarmaceutPregled   ff  = vratiPrijavljenogFarmaceuta(idFRM);
                LekoviPregledForma lpf = new LekoviPregledForma(pmestop, ff);
                lpf.ShowDialog();
            }
        }
Ejemplo n.º 2
0
 public LekoviPregledForma(ProdajnoMestoPregled p, FarmaceutPregled f)
 {
     this.prMe = p;
     this.fp   = f;
     InitializeComponent();
 }