Exemplo n.º 1
0
 public InvictusLoginForm()
 {
     myIoC           = MyIoC.getInstance();
     loginController = (LoginController)myIoC.get(typeof(LoginController));
     user            = new InvictusUser();
     InitializeComponent();
 }
Exemplo n.º 2
0
 private void loginBtn_Click(object sender, EventArgs e)
 {
     if (usernamTxt.Text != "" && passwordTxt.Text != "")
     {
         user = loginController.invictusUserRepository.findById(user.Username);
         if (user.Password != null && user.Password == passwordTxt.Text)
         {
             CategoryForm categoryForm = new CategoryForm();
             categoryForm.setCurrentUser(user);
             categoryForm.Show();
             Hide();
         }
     }
 }