private void frmLogin_Load(object sender, EventArgs e) { dbConn.establecerConexion(); actualizarModulos.verificarFecha(); ClsCambioTema.cambiarTemaBoton(panelPrincipal); ClsCambioTema.cambiarTemaBoton(panel1); if (Properties.Settings.Default.isModoOscuro == true) { panelPrincipal.BackColor = System.Drawing.Color.FromArgb(51, 52, 69); panel1.BackColor = System.Drawing.Color.FromArgb(51, 52, 69); picImagotipo.BackColor = System.Drawing.Color.FromArgb(51, 52, 69); } else { panelPrincipal.BackColor = System.Drawing.Color.FromArgb(9, 141, 216); panel1.BackColor = System.Drawing.Color.FromArgb(9, 141, 216); picImagotipo.BackColor = System.Drawing.Color.FromArgb(0, 97, 169); } btnSalir.ForeColor = Color.White; btnSalir.Active1 = Color.Red; btnSalir.Active2 = Color.Red; btnSalir.Inactive1 = Color.Red; btnSalir.Inactive2 = Color.Red; btnSalir.StrokeColor = Color.Red; }
private void IHistorialPagos_Load(object sender, EventArgs e) { dbConn.establecerConexion(); if (Properties.Settings.Default.isModoOscuro == true) { this.BackColor = System.Drawing.Color.FromArgb(51, 52, 69); } else { this.BackColor = System.Drawing.Color.FromArgb(9, 141, 216); } ClsCambioTema.cambiarTemaBoton(this); lblFechaActual.Text = "Fecha Actual: " + DateTime.Now.ToShortDateString(); }