private void AccessLogin() { LoginPresenter presenter = new LoginPresenter(this); presenter.Acces(); Response = response; presenter.Claves(); Clave = clave; presenter.Nombre(); NombreAuditor = nombreAuditor; switch (Response) { case 1: MessageBox.Show("Ingrese Usuario", "Auditoria SEMP", MessageBoxButtons.OK, MessageBoxIcon.Information); txtUser.Focus(); break; case 2: MessageBox.Show("Ingrese Password", "Auditoria SEMP", MessageBoxButtons.OK, MessageBoxIcon.Information); txtPassword.Focus(); break; case 3: MessageBox.Show("Complete los Campos Por favor", "Auditoria SEMP", MessageBoxButtons.OK, MessageBoxIcon.Information); txtUser.Focus(); break; case 4: MessageBox.Show("Usuario y/o ContraseƱa Incorrectos", "Auditoria SEMP", MessageBoxButtons.OK, MessageBoxIcon.Information); txtUser.Focus(); break; case 5: MessageBox.Show("No Tienes Nivel Suficiente para esta Aplicacion", "Auditoria SEMP", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); txtUser.Focus(); break; case 6: MessageBox.Show("Tu usuario esta en USO / Bloqueado", "Auditoria SEMP", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); txtUser.Focus(); break; case 404: MessageBox.Show("Error de Sistema", "Auditoria SEMP", MessageBoxButtons.OK, MessageBoxIcon.Warning); Application.Exit(); break; case 9000: //Acces PanelForm form = new PanelForm(); form.codigo = Clave; form.NombreAuditor = NombreAuditor; this.Hide(); form.Show(); break; default: break; } //1 Empty User //2 Empty password //3 Empty all field //4 user or password incorrect //5 Incompatible level user //6 bloqued user // 9000 Acces ok! // 404 Failed Connection }