Пример #1
0
 private void conEventoForms_Load(object sender, EventArgs e)
 {
     this.ActiveMdiChild.Dock = DockStyle.Fill;
     appEvento = new eventoAplicacao();
     appEvento.selectEventos();
     foreach (var evento in appEvento.selectEventos())
     {
         eventoCB.Items.Add(evento.Nome);
     }
     eventoCB.SelectedIndex = -1;
 }
Пример #2
0
        private void cadInscForms_Load(object sender, EventArgs e)
        {
            if (Properties.Settings.Default.Perfil == "Administrador")
            { }
            else
            {
                cpfMsk.Text = Properties.Settings.Default.CPF;
                cpfMsk.Enabled = false;
            }

            appEvento = new eventoAplicacao();
            foreach (var evento in appEvento.selectEventos())
            {
                eventoCB.Items.Add(evento.Nome);
            }
            eventoCB.SelectedIndex = -1;
            this.ActiveMdiChild.Dock = DockStyle.Fill;
        }