예제 #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();
        }
예제 #2
0
        private void ISP_Click(object sender, EventArgs e)
        {
            IdP  = long.Parse(IDPastor.Text);
            pass = int.Parse(PassPastor.Text);

            if (Pastores.buscarPastor(IdP, pass) == false)
            {
                this.Close();
            }
            else
            {
                InterfazPastores ventananueva = new InterfazPastores();
                ventananueva.Show();
                this.Close();
            }
        }
예제 #3
0
 public InterfazPastores()
 {
     InitializeComponent();
     this.Text = "Plan Felipe Integral: " + Pastores.buscarNombre(LoginPastor.IdP);
 }