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