Exemple #1
0
        private void PairedDataValuePage_NextClick(object sender, RoutedEventArgs e)
        {
            if (!CheckOrdinates(OrdinatePage.Ordinates) || !CheckPairedDataValues(PairedDataValuePage.Values))
            {
                return;
            }

            PairedDataValuePage.Visibility = Visibility.Collapsed;
            ReviewPage.PreviousPage        = PairedDataValuePage;
            OrdinatePage.ExcelView.ActiveWorkbookSet.GetLock();
            PairedDataValuePage.ExcelView.ActiveWorkbookSet.GetLock();
            ReviewPage.SetupReviewPage(RecordType.PairedData, OrdinatePage.Ordinates, PairedDataValuePage.Values);
            OrdinatePage.ExcelView.ActiveWorkbookSet.ReleaseLock();
            PairedDataValuePage.ExcelView.ActiveWorkbookSet.ReleaseLock();
            ReviewPage.Visibility = Visibility.Visible;
        }
Exemple #2
0
        private void TimeSeriesValuePage_NextClick(object sender, RoutedEventArgs e)
        {
            if (!CheckTimeSeriesValues(TimeSeriesValuePage.Values) || !CheckDates(DatePage.Dates))
            {
                return;
            }

            ReviewPage.PreviousPage = TimeSeriesValuePage;
            DatePage.ExcelView.ActiveWorkbookSet.GetLock();
            TimeSeriesValuePage.ExcelView.ActiveWorkbookSet.GetLock();
            ReviewPage.SetupReviewPage(RecordType.RegularTimeSeries, DatePage.Dates, TimeSeriesValuePage.Values);
            DatePage.ExcelView.ActiveWorkbookSet.ReleaseLock();
            TimeSeriesValuePage.ExcelView.ActiveWorkbookSet.ReleaseLock();
            TimeSeriesValuePage.Visibility = Visibility.Collapsed;
            ReviewPage.Visibility          = Visibility.Visible;
        }