Пример #1
0
        public SettingsViewModel(MonthViewModel vm)
        {
            LoadAppSettings();
            MonthViewModel = vm;

            MonthViewCommand = new Command(ShowMonthView);
        }
Пример #2
0
        public DayViewModel(MonthViewModel vm, DateTime date)
        {
            MonthViewModel = vm;
            Date           = date;

            NewNoteCommand      = new Command <NoteRecord>(ShowNewNoteView);
            MonthViewCommand    = new Command(ShowMonthView);
            PrevDayCommand      = new Command(PrevDay);
            NextDayCommand      = new Command(NextDay);
            RemoveRecordCommand = new Command <NoteRecord>(RemoveRecord);
            ChangeRecordCommand = new Command <NoteRecord>(ChangeRecord);
            DropRecordsCommand  = new Command(DropRecords);
        }
Пример #3
0
        public YearViewModel(MonthViewModel vm)
        {
            MonthViewModel = vm;
            Year           = vm.Year;

            NextYearCommand  = new Command(NextYear);
            PrevYearCommand  = new Command(PrevYear);
            MonthViewCommand = new Command <int>(ShowMonthView);

            BackToCurrentYearCommand = new Command(ToCurrentYear);

            PrepareYearData();
            FillYearData();
        }