public InvictusLoginForm() { myIoC = MyIoC.getInstance(); loginController = (LoginController)myIoC.get(typeof(LoginController)); user = new InvictusUser(); InitializeComponent(); }
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(); } } }