Beispiel #1
0
        private void CheckWorksheets()
        {
            ExcelDialogs.CheckSheets(userInput.FilePath);

            // Only the status of the buttons is updated here, in contrast to other scripts.
            // I'm not sure what kind of autofill behaviour would be suitable here.
            Dispatcher.Invoke(UpdateButtons);

            void UpdateButtons()
            {
                SelectTemplates.IsEnabled = ExcelDialogs.SheetRangeDialogAvailable;
                SelectSources.IsEnabled   = SelectTemplates.IsEnabled;
            }
        }
Beispiel #2
0
 private void CheckWorksheets()
 {
     ExcelDialogs.CheckSheets(userInput.FilePath);
     ExcelDialogs.UpdateWorksheetSelector(SelectWorksheet, TemplateName);
     ExcelDialogs.UpdateWorksheetRangeSelector(SelectRange, SheetRange);
 }