Actualizacion de aplicacion
This commit is contained in:
@@ -55,6 +55,7 @@ namespace EFCDesk
|
||||
public Login()
|
||||
{
|
||||
InitializeComponent();
|
||||
Ver.IconChar = FontAwesome.Sharp.IconChar.EyeSlash;
|
||||
}
|
||||
|
||||
private void buttonOpciones_Click(object sender, EventArgs e)
|
||||
@@ -213,7 +214,7 @@ namespace EFCDesk
|
||||
|
||||
bool EsvalidoDatos = Utils.Util.StringsValidos(user, pass);
|
||||
|
||||
if(!EsvalidoDatos)
|
||||
if (!EsvalidoDatos)
|
||||
{
|
||||
MessageBox.Show("Debe ingresar el usuario y contrase<73>a", "Informaci<63>n", MessageBoxButtons.OK);
|
||||
return;
|
||||
@@ -246,7 +247,7 @@ namespace EFCDesk
|
||||
MessageBox.Show("No se ha configurado el usuario o contrase<73>a de expediente electronico", "Informaci<63>n", MessageBoxButtons.OK);
|
||||
return;
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
textBoxContrasenia.Text = configJson.PasswordExp ?? String.Empty;
|
||||
}
|
||||
@@ -262,7 +263,7 @@ namespace EFCDesk
|
||||
|
||||
bool EsLoginValido = await Utils.Util.Login(txtUsuario.Text, textBoxContrasenia.Text);
|
||||
|
||||
if (!EsLoginValido)
|
||||
if (!EsLoginValido)
|
||||
{
|
||||
MessageBox.Show("No se pudo hacer login.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
return;
|
||||
@@ -276,7 +277,7 @@ namespace EFCDesk
|
||||
|
||||
//SecureDataHandler.SaveData(textBoxContrasenia.Text);
|
||||
//textBoxContrasenia.Text = string.Empty;
|
||||
|
||||
|
||||
this.Hide();
|
||||
FormMain Main = new FormMain(Globales.gMonitor);
|
||||
Main.Show();
|
||||
@@ -317,5 +318,56 @@ namespace EFCDesk
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void textBoxContrasenia_KeyDown_1(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.Enter)
|
||||
{
|
||||
//buttonInicioSesion_Click(this, new EventArgs());
|
||||
buttonInicioSesion.PerformClick();
|
||||
}
|
||||
}
|
||||
|
||||
private void iconbtnVerContrasenia_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void iconbtnVerContrasenia_MouseHover(object sender, EventArgs e)
|
||||
{
|
||||
textBoxContrasenia.UseSystemPasswordChar = !textBoxContrasenia.UseSystemPasswordChar;
|
||||
}
|
||||
|
||||
private void iconPictureBox1_MouseHover(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void iconPictureBox1_MouseLeave(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void iconPicVer_MouseHover(object sender, EventArgs e)
|
||||
{
|
||||
textBoxContrasenia.UseSystemPasswordChar = true;
|
||||
}
|
||||
|
||||
private void iconPicVer_MouseLeave(object sender, EventArgs e)
|
||||
{
|
||||
textBoxContrasenia.UseSystemPasswordChar = false;
|
||||
}
|
||||
|
||||
private void Ver_MouseHover(object sender, EventArgs e)
|
||||
{
|
||||
textBoxContrasenia.UseSystemPasswordChar = false;
|
||||
Ver.IconChar = FontAwesome.Sharp.IconChar.Eye;
|
||||
}
|
||||
|
||||
private void Ver_MouseLeave(object sender, EventArgs e)
|
||||
{
|
||||
textBoxContrasenia.UseSystemPasswordChar = true;
|
||||
Ver.IconChar = FontAwesome.Sharp.IconChar.EyeSlash;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user