Exemple #1
0
        public Principal()
        {
            InitializeComponent();
            Lideres      lideres      = new Lideres();
            Supervisores supervisores = new Supervisores();
            Pastores     pastores     = new Pastores();

            BackColor                = Components.GetBlanco();
            PanelLogos.BackColor     = Components.GetVerdeOscuro();
            Diosbendice.ForeColor    = Components.GetVeige();
            Diosbendice.Text         = "¡Dios bendice tu " + CultureInfo.CurrentCulture.TextInfo.ToTitleCase(DateTime.Today.ToString("dddd", new CultureInfo("es-CO"))) + "!";
            PastoresLabel.BackColor  = Components.GetVerdeOscuro();
            PastoresLabel.ForeColor  = Components.GetBlanco();
            Pastoresbutton.BackColor = Components.GetVerdeOscuro();
            Pastoresbutton.FlatAppearance.BorderColor        = Components.GetVerdeOscuro();
            Pastoresbutton.FlatAppearance.MouseDownBackColor = Components.GetVerdeClaro();
            Pastoresbutton.FlatAppearance.MouseOverBackColor = Components.GetVerde();
            RedLabel.BackColor                      = Components.GetVerdeOscuro();
            RedLabel.ForeColor                      = Components.GetBlanco();
            Red.BackColor                           = Components.GetVerdeOscuro();
            Red.FlatAppearance.BorderColor          = Components.GetVerdeOscuro();
            Red.FlatAppearance.MouseDownBackColor   = Components.GetVerdeClaro();
            Red.FlatAppearance.MouseOverBackColor   = Components.GetVerde();
            LiderLabel.BackColor                    = Components.GetVerdeOscuro();
            LiderLabel.ForeColor                    = Components.GetBlanco();
            Lider.BackColor                         = Components.GetVerdeOscuro();
            Lider.FlatAppearance.BorderColor        = Components.GetVerdeOscuro();
            Lider.FlatAppearance.MouseDownBackColor = Components.GetVerdeClaro();
            Lider.FlatAppearance.MouseOverBackColor = Components.GetVerde();
        }
        private void ISL_Click(object sender, EventArgs e)
        {
            IdL  = long.Parse(IDLider.Text);
            pass = int.Parse(PassLider.Text);

            if (Lideres.BuscarLider(IdL, pass) == false)
            {
                this.Close();
            }
            else
            {
                InterfazLider ventananueva = new InterfazLider();
                ventananueva.Show();
                this.Close();
            }
        }