예제 #1
0
 public BVPImportOptionsWindow(User user, BVPImportOptions options)
 {
     InitializeComponent();
     this.DataContext = this;
     this.User = user;
     this.Options = options;
     Filename = "";
     if (options != null && !String.IsNullOrEmpty(options.Filename)) {
         Filename = options.Filename;
     }
 }
예제 #2
0
 public BVPImportOptionsWindow(User user, BVPImportOptions options)
 {
     InitializeComponent();
     this.DataContext = this;
     this.User        = user;
     this.Options     = options;
     Filename         = "";
     if (options != null && !String.IsNullOrEmpty(options.Filename))
     {
         Filename = options.Filename;
     }
 }
        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);
        }
 protected override void ReadEntryPoint(EntryPoint ep)
 {
     _options          = new BVPImportOptions();
     _options.Filename = ep["Filename"];
 }
예제 #5
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;
        }
예제 #6
0
 protected override void ReadEntryPoint(EntryPoint ep)
 {
     _options = new BVPImportOptions();
     _options.Filename = ep["Filename"];
 }