private void ClearProperties()
 {
     Commits.Clear();
     Users.Clear();
     UserTasks.Clear();
     SelectedFilters.ClearFilter();
     _dictionaryUserTasks.Clear();
 }
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            FrameStorage1C.Navigate(typeof(Views.Storage1CView));

            SelectedFilters.SetFilterByString(Settings.SelectedFilterPeriods);

            UpdateDB(true);
        }
        private void FillTableCommits()
        {
            Commits.Clear();
            SelectedFilters.ClearDateTaskChanged();
            CalendarViewDateTaskChanged.SelectedDates.Clear();

            if (SelectedFilters.SelectedTask != null)
            {
                if (_dictionaryUserTasks.ContainsKey(SelectedFilters.SelectedUser))
                {
                    foreach (Models.Commit item in _dictionaryUserTasks[SelectedFilters.SelectedUser])
                    {
                        if (SelectedFilters.SelectedTask == item.Task)
                        {
                            if (DateIncludedInFilterPeriod(item.Date))
                            {
                                Commits.Add(item);

                                if (SelectedFilters.DateTaskChangedMin > item.Date ||
                                    SelectedFilters.DateTaskChangedMin == DateTime.MinValue)
                                {
                                    SelectedFilters.DateTaskChangedMin = item.Date;
                                }
                                if (SelectedFilters.DateTaskChangedMax < item.Date ||
                                    SelectedFilters.DateTaskChangedMax == DateTime.MaxValue)
                                {
                                    SelectedFilters.DateTaskChangedMax = item.Date;
                                }

                                CalendarViewDateTaskChanged.SelectedDates.Add(item.Date);
                            }
                        }
                    }
                }
            }

            if (SelectedFilters.DateTaskChangedMax == DateTime.MaxValue)
            {
                SetDisplayDateCalendatView(DateTime.Now);
            }
            else
            {
                SetDisplayDateCalendatView(SelectedFilters.DateTaskChangedMax);
            }
        }