private void UpdateUI(PostulationReportClass postulationReport)
        {
            ReadEntriesCount = postulationReport.LineCountFound;

            Box_DateStart.Text = postulationReport.DateStart.ToString("G");
            Box_DateStop.Text  = postulationReport.DateStop.ToString("G");
            Box_Entries.Text   = ReadEntriesCount.ToString();

            System.Diagnostics.Debug.WriteLine("System parsed a lince count=" + ReadEntriesCount);
        }
        public MainWindow()
        {
            InitializeComponent();
            this.DataContext = this;

            _postulationReport = PostulationReportClass.InitPostulationReport(FamilyName, AVS, Period);
            PostulationDatagridReader.Read(InitFolder, InitFile, _postulationReport);

            UpdateUI(_postulationReport);
            UpdatePostulationDisplay(_postulationReport);
        }
 private void UpdateListView(PostulationReportClass postulationReport, int selectedPage)
 {
     if (_postulationReport != null || ListView_SelectedEntries != null)
     {
         if (1 <= selectedPage && selectedPage <= _postulationReport.SelectedEntriesPageCount)
         {
             ListView_SelectedEntriesPerPage.ItemsSource = _postulationReport.SelectedEntriesByPages[selectedPage];
             ListView_SelectedEntries.ItemsSource        = _postulationReport.SelectedEntriesByMonth;
         }
         else
         {
             ListView_SelectedEntriesPerPage.ItemsSource = null;
             ListView_SelectedEntries.ItemsSource        = _postulationReport.SelectedEntriesByMonth;
         }
     }
 }
        private void UpdatePostulationDisplay(PostulationReportClass postulationReport)
        {
            if (postulationReport != null)
            {
                postulationReport.Period = this.Period;
                postulationReport.SelectByDate(FirstMonthsDay(datePicker.SelectedDate.GetValueOrDefault()));

                this.SelectedEntriesCount     = postulationReport.SelectedEntriesCount;
                this.SelectedEntriesPageCount = postulationReport.SelectedEntriesPageCount;

                this.Box_SelectedEntries.Text      = this.SelectedEntriesCount.ToString();
                this.Box_SelectedEntriesPages.Text = this.SelectedEntriesPageCount.ToString();
                this.UpDown_SelectedPage.ValueMax  = this.SelectedEntriesPageCount;

                int selectedPage = UpDown_SelectedPage.NumValue;
                this.UpdateListView(postulationReport, selectedPage);
            }
        }