private void tsRegresar_Click(object sender, EventArgs e)
        {
            this.Hide();
            formVistaUserLogged formVistaUser = new formVistaUserLogged(service);

            formVistaUser.ShowDialog();
        }
Beispiel #2
0
        private void cmdIniciarSesionUs_Click(object sender, EventArgs e)
        {
            // service.LoginUser(txtLogin.Text, txtPassword.Text);
            try
            {
                service.LoginUser(txtLoginUs.Text, txtPasswordUs.Text);
                txtLoginUs.Text            = "Usuario";
                txtPasswordUs.Text         = "Contraseña";
                txtPasswordUs.PasswordChar = '\0';
                this.Hide();
                formVistaUserLogged formVistaUserLogged = new formVistaUserLogged(service);
                formVistaUserLogged.ShowDialog();
            }
            catch (ServiceException serviceException)
            {
                MessageBox.Show(this, serviceException.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }

            //this.Close();
        }