Esempio n. 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 ISs_Click(object sender, EventArgs e)
        {
            IdS  = long.Parse(IDSupervisor.Text);
            pass = int.Parse(PassSupervisor.Text);

            if (Supervisores.buscarSupervisor(IdS, pass) == false)
            {
                this.Close();
            }
            else
            {
                InterfazSupervisor ventananueva = new InterfazSupervisor();
                ventananueva.Show();
                this.Close();
            }
        }