Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- using BussinessLayer;
- namespace Views
- {
- public partial class FormLogin : Form
- {
- Zaposlenik zap = new Zaposlenik();
- public FormLogin()
- {
- InitializeComponent();
- }
- private void button1_Click(object sender, EventArgs e)
- {
- zap.Username = tBxUsername.Text.ToString();
- zap.Password = tBxPassword.Text.ToString();
- if (zap.LoginTrue(zap))
- {
- FormMain FM = new FormMain();
- FM.Show();
- this.Dispose();
- }
- else
- {
- MessageBox.Show("Username ili password nisu ispravni");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement