private void _TextBoxHeureFin_LostFocus(object sender, RoutedEventArgs e)
 {
     if (this._textBoxHeureFin.Text.Trim().Length != 0)
     {
         if (this._textBoxHeureFin.Text.Substring(0, 1) != "x")
         {
             this._textBoxHeureFin.Text = Verif_Format_Heure(this._textBoxHeureFin.Text);
             Verifications tmp = new Verifications();
             tmp.TextBoxHeureObligatoire(this._textBoxHeureFin, this._textBlockHeureFin);
             this.Verif_TextBoxHeureFin();
         }
     }
 }
 private void _TextBoxHeureFin_TextChanged(object sender, TextChangedEventArgs e)
 {
     if (this._textBoxHeureFin.Text.Trim().Length == 5 && this._textBoxHeureFin.Text.Substring(0,1) != "x")
     {
         Verifications tmp = new Verifications();
         tmp.TextBoxHeureObligatoire(this._textBoxHeureFin, this._textBlockHeureFin);
         this.Verif_TextBoxHeureFin();
     }
 }
Example #3
0
        public App()
        {
            //_splash._TextBlockEnCours.Text = "Initialisation de la personnalisation utilisateur";
            this.personnalisation = new Personnalisation();

            _splash = new Splash();
            _splash.progressBarLoading.IsIndeterminate = true;
            _splash.Show();

            _splash._TextBlockEnCours.Text = "Connexion à la base de données...";
            this.mySitaffEntities = new sitaff2011Entities();
            if (!this.mySitaffEntities.DatabaseExists())
            {
                this.mySitaffEntities.CreateDatabase();
            }

            _splash._TextBlockEnCours.Text = "Initialisation du vérificateur de réseau...";
            this.startThreadVerifConnexion();

            _splash._TextBlockEnCours.Text = "Initialisation de la sécurité...";
            this._securite = new Securite();

            _splash._TextBlockEnCours.Text = "Initialisation des contraintes de vérifications...";
            this._verifications = new Verifications();

            _splash._TextBlockEnCours.Text = "Initialisation des fonctions d'afficher / masquer les colonnes...";
            this._afficherMasquer = new AfficherMasquer();

            _splash._TextBlockEnCours.Text = "Initialisation des menu clic droit...";
            this._menuClicDroit = new MenuClicDroit();

            _splash._TextBlockEnCours.Text = "Initialisation du dimensionnement automatique...";
            this._dimensionnementFenetre = new DimensionnementFenetre();
        }