예제 #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);
        }
예제 #2
0
파일: CSVImporter.cs 프로젝트: kehh/biolink
        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;
        }