예제 #1
0
        public static ExerciceJeu GetExerciceJeu(ThemeModel themeJeu, string niveau)
        {
            ExerciceJeu exo = new ExerciceJeu(ExerciceConfig.GetBaseConfigPourExercice("MvtsComplexes"), ExerciceConfig.GetBigBorne(), themeJeu);

            exo.Niveau = GetNiveauByte(niveau);
            return(exo);
        }
예제 #2
0
 void ValidReeducation()
 {
     try
     {
         Application.Current.Dispatcher.BeginInvoke(new Action(() =>
         {
         }), DispatcherPriority.Normal);
         foreach (var item in Exercices)
         {
             if (typeZoom == "0")
             {
                 item.BorneConfig = ExerciceConfig.GetSmallBorne();
             }
             if (typeZoom == "1")
             {
                 item.BorneConfig = ExerciceConfig.GetMediumBorne();
             }
             if (typeZoom == "2")
             {
                 item.BorneConfig = ExerciceConfig.GetBigBorne();
             }
         }
         List <ExerciceGeneric> listExGen = new List <ExerciceGeneric>(Exercices);
         //_nav.NavigateTo<VisualisationViewModel>(this, null, false);
         Messenger.Default.Send(listExGen, "ReeducationKidWizardViewModel");
     }
     catch (Exception ex)
     {
         MessageBox.Show("Erreur : " + ex.Message, "Erreur !", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }
예제 #3
0
        public static ExerciceEvaluation GetExerciceEvaluation(string type, ThemeEvaluationModel themeEnfant, TypeExercicePoulies typeExopoulies, TypeSymetriePoulies sym, int decalage)
        {
            ExerciceEvaluation exo;

            switch (type)
            {
            case "poulies": exo = new ExercicePoulies(ExerciceConfig.GetBaseConfig(), ExerciceConfig.GetBigBorne(), themeEnfant, new InteractionConfig(), sym, typeExopoulies, decalage);
                break;

            default: exo = new ExerciceEvaluation(ExerciceConfig.GetBaseConfig(), ExerciceConfig.GetBigBorne(), null);
                break;
            }
            return(exo);
        }