private void ogledprofilabutton_Click(object sender, EventArgs e) { profil prof = new profil(id); prof.Show(); this.Hide(); }
private void nazaj_Click(object sender, EventArgs e) { profil profi = new profil(idu); profi.Show(); this.Close(); }
private void pributton_Click(object sender, EventArgs e) { string eka = enkript(passtext.Text); string email = emailtext.Text; bool prev = baza.prijava(email, eka); switch (prev) { case true: MessageBox.Show("Uspešna prijava"); this.Hide(); int id = baza.iduporabnika(email, eka); ; profil profi = new profil(id); profi.Show(); break; case false: MessageBox.Show("Prijava neuspešna"); emailtext.Text = ""; passtext.Text = ""; break; } }
private void nazajbutton_Click(object sender, EventArgs e) { profil profi = new profil(ajdi); profi.Show(); this.Close(); }
private void doddelbutton_Click(object sender, EventArgs e) { string[] ok = lekarnecombo.SelectedItem.ToString().Split('|'); baza.sprememba_delavca(ajdi, ok[0], ok[1]); MessageBox.Show("Uporabnik je bil uspešno spremenjen v delavca"); this.Close(); profil profi = new profil(ajdi); profi.Show(); this.Close(); }
private void button1_Click(object sender, EventArgs e) { string[] k = krajcombo.SelectedItem.ToString().Split('|'); string pass = enkript(passtext.Text); bool ok = baza.updateuser(emailtext.Text, pass, telefontext.Text, k[0].ToString(), imetext.Text, id); if (ok == true) { MessageBox.Show("Uspešno posodobljen uporabnik"); profil profi = new profil(id); profi.Show(); this.Close(); } else { MessageBox.Show("Nekaj je šlo narobe pri posodabljanju"); } }