private void buttonKreni_Click(object sender, EventArgs e) { if (textKIme.Text.ToString().Length == 0 || textPass.Text.ToString().Length == 0) { toolStripStatusLabel1.Text = "Molimo popunite sva polja!"; toolStripStatusLabel1.Visible = true; toolStripStatusLabel1.ForeColor = Color.Red; } else if (Sara_17592.Osoblje_trazi(user_name17592, passwordic_17592) == 1) { Pacijent_forma pacijentic = new Pacijent_forma(ref Sara_17592, passwordic_17592); // this.Hide(); pacijentic.Show(); } else if (Sara_17592.Osoblje_trazi(user_name17592, passwordic_17592) == 0) { Doktor_forma doktorcic_17592 = new Doktor_forma(ref Sara_17592, passwordic_17592); doktorcic_17592.Show(); } else if (Sara_17592.Osoblje_trazi(user_name17592, passwordic_17592) == 2) { Glavna formica = new Glavna(ref Sara_17592); formica.Show(); } else { toolStripStatusLabel1.Text = "Ne postoji korisnik sa unesenim podacima"; toolStripStatusLabel1.Visible = true; toolStripStatusLabel1.ForeColor = Color.Red; } }