public ConvocationParentUC()
        {
            InitializeComponent();
            classes = new List <string>();

            notificationBL = new GestionNotificationBL();
            //chkEmail.IsChecked = true;
            //chkSMS.IsChecked = true;
            nbcaracteres          = 0;
            annee                 = notificationBL.anneeEnCours();
            eleve                 = new EleveBE();
            classes               = notificationBL.listerValeurColonneClasse("codeclasse");
            cmbClasse.ItemsSource = classes;
            lblStatut.Content     = GestionNotificationBL.INFORMATIONS_NON_VALIDEES;
        }
        private void cmbConcerne_DropDownClosed(object sender, EventArgs e)
        {
            cmbChoix.IsEnabled = true;

            switch (cmbConcerne.Text)
            {
            case CLASSE:
                codes = notificationBL.listerValeurColonneClasse("codeclasse");
                cmbChoix.ItemsSource = codes;
                cmbChoix.Items.Refresh();
                break;

            case SERIE:
                codes = notificationBL.listerValeurColonneSerie("codeserie");
                cmbChoix.ItemsSource = codes;
                cmbChoix.Items.Refresh();
                break;

            case CYCLE:
                codes = notificationBL.listerValeurColonneCycle("codecycle");
                cmbChoix.ItemsSource = codes;
                cmbChoix.Items.Refresh();
                break;

            case NIVEAU:
                codes = notificationBL.listerValeurColonneNiveau("codeniveau");
                cmbChoix.ItemsSource = codes;
                cmbChoix.Items.Refresh();
                break;

            case MIXTE:
                cmbChoix.Text      = "";
                cmbChoix.IsEnabled = false;
                break;

            default:
                break;
            }
        }
        public EnvoyerResultatUC()
        {
            InitializeComponent();
            notificationBL = new GestionNotificationBL();
            //chkEmail.IsChecked = true;
            //chkSMS.IsChecked = true;
            classes = new List <string>();
            classes = notificationBL.listerValeurColonneClasse("codeclasse");
            classes.Add(TOUTE);
            cmbClasse.ItemsSource = classes;
            annee                 = notificationBL.anneeEnCours();
            txtAnnee.Text         = " / " + annee;
            txtAnneeScolaire.Text = (annee - 1).ToString();
            List <string> tampon = new List <string>();

            periodes = new List <string>();
            tampon   = notificationBL.listerValeurColonneSequence("codeseq");
            if (tampon != null)
            {
                foreach (string s in tampon)
                {
                    periodes.Add(s);
                }
            }
            tampon = notificationBL.listerValeurColonneTrimestre("codetrimestre");
            if (tampon != null)
            {
                foreach (string s in tampon)
                {
                    periodes.Add(s);
                }
            }
            periodes.Add(ANNUEL);
            cmbPeriode.ItemsSource = periodes;
            txtMessage.IsEnabled   = false;
            lblStatut.Content      = GestionNotificationBL.INFORMATIONS_NON_VALIDEES;
        }