Exemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();

            var viewModel = new TimeTrackerViewModel();

            DataContext = viewModel;
        }
Exemplo n.º 2
0
        private void Months_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            var month = new Month();

            Enum.TryParse(Months.SelectedValue.ToString(), out MonthName monthName);
            month.MonthName = monthName;

            List <int> test;

            test = month.Days;

            var vm = new TimeTrackerViewModel();

            //listDays.ItemsSource = vm.Days;
            DataContext = vm;
        }