public CalendarPageViewModel(Timeline parentTimeline, CalendarConfiguration config, Date initialDate)
 {
     _timelineField            = parentTimeline;
     _config                   = config;
     _advancedDate             = new AdvancedDate(initialDate, config);
     MoveCalendarForwardClick  = new BindableCommand(OnMoveCalendarForwardButtonClick);
     MoveCalendarBackwardClick = new BindableCommand(OnMoveCalendarBackwardClick);
 }
        public MainPageDisplayViewModel()
        {
            NoteCreateButtonClick = new BindableCommand(OnNoteCreateButtonClick);
            LoadFileButtonClick   = new BindableCommand(OnLoadFileButtonClick);
            SaveFileButtonClick   = new BindableCommand(OnSaveFileButtonClick);
            EditNoteButtonClick   = new BindableCommand(OnEditNoteButtonClick);
            RemoveNoteButtonClick = new BindableCommand(OnRemoveNoteButtonClick);


            string directoryName = Path.GetDirectoryName(FilePathField);

            if (!File.Exists(directoryName))
            {
                Directory.CreateDirectory(directoryName);
            }
        }