public ExerciseEvaluationPage(DisplayVariatyBO variatie, DisplayFicheBO fiche, EvaluatieBO eval, List <int> listhr)
 {
     InitializeComponent();
     Fiche     = fiche;
     Evaluatie = eval;
     Variatie  = variatie;
     listHr    = listhr;
     Title     = "Evaluatie";
     StartUp();
 }
Exemplo n.º 2
0
        public SetOverviewPage(EvaluatieBO eval)
        {
            InitializeComponent();
            Evaluatie = eval;

            imgHeart.Source  = "heart.png";
            imgHeart2.Source = "heart.png";
            imgHeart3.Source = "heart.png";
            StartUp();
        }
Exemplo n.º 3
0
 public ExerciseOverviewPage(List <int> listhr, EvaluatieBO eval)
 {
     InitializeComponent();
     Evaluatie = eval;
     listHr    = listhr;
     Title     = "Overzicht";
     StartUp();
     imgHeart.Source  = "heart.png";
     imgHeart2.Source = "heart.png";
     imgHeart3.Source = "heart.png";
 }
Exemplo n.º 4
0
 public ActiveExercise(DisplayVariatyBO variatie, DisplayFicheBO fiche)
 {
     InitializeComponent();
     Fiche            = fiche;
     Variatie         = variatie;
     Sets             = 1;
     eval             = new EvaluatieBO();
     eval.Email       = Application.Current.Properties["Current_User"].ToString();
     eval.Datum       = DateTime.Now;
     eval.WorkoutNaam = Fiche.WorkoutName;
     eval.Variatie    = variatie.Naam;
     eval.Graad       = Application.Current.Properties["Difficulty"].ToString();
     StartUp();
 }
Exemplo n.º 5
0
 private async void LvwSets_ItemSelected(object sender, SelectedItemChangedEventArgs e)
 {
     try
     {
         EvaluatieBO eval = (EvaluatieBO)lvwSets.SelectedItem;
         if (eval != null)
         {
             await Navigation.PushAsync(new SetOverviewPage(eval));
         }
         lvwSets.SelectedItem = null;
     }
     catch (Exception ex)
     {
         await StepOutManager.Writelog(ex);
         await DisplayAlert("Fout", "Er is iets misgelopen bij het openen van het overzicht, als deze fout zich blijft voordoen neemt men best contact op met de support", "OK");
     }
 }
Exemplo n.º 6
0
        public static async Task <IActionResult> Run([HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = "V3/PostEvaluatie")] HttpRequest req, ILogger log)
        {
            try
            {
                string         requestBody     = await new StreamReader(req.Body).ReadToEndAsync();
                EvaluatieBO    data            = JsonConvert.DeserializeObject <EvaluatieBO>(requestBody);
                Uri            serviceEndpoint = new Uri(Environment.GetEnvironmentVariable("CosmosEndPoint"));
                string         key             = Environment.GetEnvironmentVariable("ConnectionStringCosmosDB");
                DocumentClient client          = new DocumentClient(serviceEndpoint, key);
                var            collectionUrl   = UriFactory.CreateDocumentCollectionUri("StapOutData", "StepOutData");

                await client.CreateDocumentAsync(collectionUrl, data);

                return(new StatusCodeResult(200));
            }
            catch (Exception ex)
            {
                //om makklijk fouten te kunnen opsporen.
                return(new OkObjectResult(ex.Message));
                //return new StatusCodeResult(500);
            }
        }