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(); } }
public LekoviPregledForma(ProdajnoMestoPregled p, FarmaceutPregled f) { this.prMe = p; this.fp = f; InitializeComponent(); }