Ejemplo n.º 1
0
 private void buttonPrijava_Click(object sender, EventArgs e)
 {
     ServiceReferenceSZ.StrelskaZvezaClient client = new ServiceReferenceSZ.StrelskaZvezaClient();
     ServiceReferenceSZ.User u = new ServiceReferenceSZ.User
     {
         Ime   = textBox1.Text,
         Geslo = textBox2.Text
     };
     if (client.CheckUser(u, out bool admin))
     {
         MainWindow mw = new MainWindow();
         this.Hide();
         mw.Show();
     }
     else
     {
         MessageBox.Show("napacno geslo");
     }
 }