private void button5_Click(object sender, EventArgs e) { int b = Convert.ToInt32(textBox9.Text); bolesnik = listaBolesnika[b - 1]; if (bolesnik.bolest == 0) { listBox1.Items.Add("Pacijent je zdrav."); } else if (bolesnik.bolest == 1) { listBox1.Items.Add("Pacijent ima blage simptome."); listBox2.Items.Add("Caj i supica."); } else if (bolesnik.bolest == 2) { listBox1.Items.Add("Pacijent ima tesku klinicku sliku."); listBox2.Items.Add("Karantin 14 dana."); } else if (bolesnik.bolest == 3) { listBox1.Items.Add("Pacijent ima najtezu klinicku sliku."); listBox2.Items.Add("Karantin 28 dana."); } }
private void button8_Click(object sender, EventArgs e) { int b = Convert.ToInt32(textBox9.Text); bolesnik = listaBolesnika[b - 1]; bolesnik.bolest++; }
//private void textBox1_TextChanged(object sender, EventArgs e){ } //private void textBox7_TextChanged(object sender, EventArgs e){ } //private void label3_Click(object sender, EventArgs e){ } private void button4_Click(object sender, EventArgs e) { string a = textBox9.Text; int b = Convert.ToInt32(a); Bolesnik bolesnik = listaBolesnika[b - 1]; textBox4.Text = bolesnik.Ime; textBox5.Text = bolesnik.Prezime; }
public void DodajBolsenika(string ime, string prezime, string adresa) { Bolesnik a = new Bolesnik(ime, prezime, adresa); listaBolesnika.Add(a); }