public IzaberiLekara(List <BazaN.Zaposleni> lekari, BazaN.Uput uput, Uput up) { this.lekari = new List <BazaN.Zaposleni>(); this.uput = new BazaN.Uput(); this.lekari = lekari; this.lekar = new BazaN.Zaposleni(); this.uput = uput; this.up = up; InitializeComponent(); }
private void button1_Click(object sender, EventArgs e) { if (dataGridView1.SelectedRows.Count == 0) { MessageBox.Show("Selektujte pacijenta", "Obavestenje", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } BazaN.Pacijent a = new BazaN.Pacijent(); dataGridView1.Focus(); a = (BazaN.Pacijent)dataGridView1.CurrentRow.DataBoundItem; Uput u = new Uput(this.lekarId, a.Id, this.idZS); u.Show(); }