private async void BIniciar_MouseLeave(object sender, EventArgs e) { if (LUser.ForeColor == Color.Red) { await CompStandar.ColorLabelAsync(this, LUser, Color.Black, 700); } if (LTitulo.Text != "Iniciar Sesion") { CompStandar.ReescribirText_Label(LTitulo, "Iniciar Sesion", Color.Black); } if (LClave.ForeColor == Color.Red) { await CompStandar.ColorLabelAsync(this, LClave, Color.Black, 400); } CompStandar.BorderMouseLeave(Button: BIniciar); }
protected async virtual void BGuardar_MouseLeave(object sender, EventArgs e) { #region Restaura Valores de color if (LNombre.ForeColor == Color.Red) { await CompStandar.ColorLabelAsync(this, LNombre, Color.Black); } if (LApellido.ForeColor == Color.Red) { await CompStandar.ColorLabelAsync(this, LApellido, Color.Black); } if (LExpComercial.ForeColor == Color.Red) { await CompStandar.ColorLabelAsync(this, LExpComercial, Color.Black); } #endregion CompStandar.BorderMouseLeave(BGuardar); }