<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Template10.Common;
using Template10.Controls;
using Template10.Mvvm;
using Template10.Services.NavigationService;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Media.Animation;
using Zermelo.App.UWP.Schedule;
using Zermelo.App.UWP.Shell;

namespace Zermelo.App.UWP.OtherSchedules
{
    public class OtherSchedulesViewModel : ViewModelBase
    {
        public OtherSchedulesViewModel()
        {
            GoToSchedule = new DelegateCommand(() =>
            {
                ((ShellView)WindowWrapper.Current().Content).HamburgerPrimaryButtons.Add(
                    new HamburgerButtonInfo()
                    {
                        Content = new HamburgerButton()
                        {
                            Text = Code,
                            Symbol = Symbol.Contact
                        },
                        PageType = typeof(ScheduleView),
                        PageParameter = ((ScheduleType)Type, Code),
                        IsChecked = true
                    }
                );
            });
        }

        private string _code;
        public string Code
        {
            get => _code;
            set
            {
                _code = value;
                RaisePropertyChanged();
            }
        }

        private int _type;
        public int Type
        {
            get => _type;
            set
            {
                _type = value;<commit_msg>Navigate to ScheduleView after choosing other schedule (#6)<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Template10.Common;
using Template10.Controls;
using Template10.Mvvm;
using Template10.Services.NavigationService;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Media.Animation;
using Zermelo.App.UWP.Schedule;
using Zermelo.App.UWP.Shell;

namespace Zermelo.App.UWP.OtherSchedules
{
    public class OtherSchedulesViewModel : ViewModelBase
    {
        public OtherSchedulesViewModel()
        {
            GoToSchedule = new DelegateCommand(() =>
            {
                ((ShellView)WindowWrapper.Current().Content).HamburgerPrimaryButtons.Add(
                    new HamburgerButtonInfo()
                    {
                        Content = new HamburgerButton()
                        {
                            Text = Code,
                            Symbol = Symbol.Contact
                        },
                        PageType = typeof(ScheduleView),
                        PageParameter = ((ScheduleType)Type, Code)
                    }
                );

                NavigationService.Navigate(typeof(ScheduleView), ((ScheduleType)Type, Code));
            });
        }

        private string _code;
        public string Code
        {
            get => _code;
            set
            {
                _code = value;
                RaisePropertyChanged();
            }
        }

        private int _type;
        public int Type
        {
            get => _type;
            set
            {
                _type = value;
{'fraction_non_alphanumeric': 0.078196872125115, 'fraction_numerical': 0.005213124808341, 'mean_word_length': 1.363768115942029, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '11447', 'n_tokens_mistral': 822, 'n_tokens_neox': 764, 'n_words': 161}