Exemple #1
0
 public void OnCargaDatos(object sender, CargaInicialEventArgs e)
 {
     this.Text                 = e.NombreProducto;
     this.txtXTitulo.Text      = "<b><font size=\"+12\"><i> " + e.TituloUno + "</i><font color=\"#DF0101\">  " + e.TituloDos + "</font></font></b>";
     this.lblDerechos.Text     = e.DerechoCopia + "\nVersión del producto " + e.Version;
     this.stbLabelFecha.Text   = String.Format("{0:ddd, dd MMM yyyy}", e.FechaServidor);//#B02B2C
     this.stbLabelIp.Text      = e.DireccionIp;
     this.stbLabelUsuario.Text = e.NombreUsuario;
 }
Exemple #2
0
 public void EstablecerValores()
 {
     if (this.OnCargaInicialEvent != null)
     {
         General.periodoActual = 2014;
         CargaInicialEventArgs argumentos = new CargaInicialEventArgs(
             General.usuarioActivo.ipsesion, General.usuarioActivo.fkusuario.ToString(),
             General.fechaServidor)
         {
             TituloUno      = "   " + ParametroGeneralPr.Instancia.ParametrosGenerales["nombre_empresa"].valor,
             TituloDos      = " " + ParametroGeneralPr.Instancia.ParametrosGenerales["complemento_nombre_empresa"].valor,
             NombreProducto = General.appProducto,
             DerechoCopia   = General.appDerechoCopia,
             Version        = General.appVersion,
         };
         OnCargaInicialEvent(this, argumentos);
         argumentos = null;
     }
 }