Advertisement
Guest User

login

a guest
Apr 12th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. using BussinessLayer;
  11.  
  12. namespace Views
  13. {
  14. public partial class FormLogin : Form
  15. {
  16. Zaposlenik zap = new Zaposlenik();
  17. public FormLogin()
  18. {
  19. InitializeComponent();
  20. }
  21.  
  22. private void button1_Click(object sender, EventArgs e)
  23. {
  24. zap.Username = tBxUsername.Text.ToString();
  25. zap.Password = tBxPassword.Text.ToString();
  26. if (zap.LoginTrue(zap))
  27. {
  28. FormMain FM = new FormMain();
  29. FM.Show();
  30. this.Dispose();
  31. }
  32. else
  33. {
  34. MessageBox.Show("Username ili password nisu ispravni");
  35. }
  36. }
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement