public override bool GetOptions(System.Windows.Window parentWindow, ImportWizardContext context)
        {
            var frm = new BVPImportOptionsWindow(PluginManager.Instance.User, _options);

            frm.Owner = parentWindow;
            frm.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            if (frm.ShowDialog().GetValueOrDefault(false))
            {
                _options = new BVPImportOptions {
                    Filename = frm.Filename, RowSource = frm.RowSource
                };
                if (context.FieldMappings == null || context.FieldMappings.Count() == 0)
                {
                    PreloadMappings(context);
                }
                return(true);
            }

            return(false);
        }
Exemple #2
0
        public override bool GetOptions(System.Windows.Window parentWindow, ImportWizardContext context)
        {
            var frm = new BVPImportOptionsWindow(PluginManager.Instance.User, _options);
            frm.Owner = parentWindow;
            frm.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            if (frm.ShowDialog().GetValueOrDefault(false)) {
                _options = new BVPImportOptions { Filename = frm.Filename, RowSource = frm.RowSource };
                if (context.FieldMappings == null || context.FieldMappings.Count() == 0) {
                    PreloadMappings(context);
                }
                return true;
            }

            return false;
        }