Esempio n. 1
0
 public frm_mainScreen(Project project, User userLogged, frm_projectSelect frm_ProjectSelect)
 {
     projectSelected        = project;
     this.userLogged        = userLogged;
     hero                   = new Hero();
     this.frm_ProjectSelect = frm_ProjectSelect;
     InitializeComponent();
 }
Esempio n. 2
0
        private void btn_login_Click(object sender, EventArgs e)
        {
            UserController userController = new UserController();
            User           user           = userController.GetUser(txt_login.Text, txt_password.Text);

            if (user != null)
            {
                Hide();

                Form frm_projectSelect = new frm_projectSelect(user, this);
                frm_projectSelect.Show();
            }
            else
            {
                MessageBox.Show("Account or password may be incorrect!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }