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"]; }
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; }