Exemple #1
0
        public override bool GetOptions(System.Windows.Window parentWindow, ImportWizardContext context)
        {
            var frm = new CSVImportOptionsWindow(_options);

            frm.Owner = parentWindow;
            frm.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            if (frm.ShowDialog().GetValueOrDefault(false))
            {
                _options = new CSVImporterOptions {
                    Filename = frm.Filename, Delimiter = frm.Delimiter, FirstRowContainsNames = frm.IsFirstRowContainNames, ColumnNames = frm.ColumnNames
                };
                return(true);
            }

            return(false);
        }
Exemple #2
0
        public override bool GetOptions(System.Windows.Window parentWindow, ImportWizardContext context)
        {
            var frm = new CSVImportOptionsWindow(_options);
            frm.Owner = parentWindow;
            frm.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            if (frm.ShowDialog().GetValueOrDefault(false)) {
                _options = new CSVImporterOptions { Filename = frm.Filename, Delimiter = frm.Delimiter, FirstRowContainsNames = frm.IsFirstRowContainNames, ColumnNames = frm.ColumnNames };
                return true;
            }

            return false;
        }