private void SaveImpl() { var model = Model as FileSourceProfile; if (model == null) { model = new FileSourceProfile { Guid = Guid.NewGuid() }; } model.FilePath = FilePath; model.TransactionIdentificator = Transaction; model.RuleIdentificatorString = ImportRule.Identificator; model.CleanBeforeImport = CleanBeforeImport; model.EmbedSource = EmbedSource; model.Distributor = Distributor; TargetsLocator.Set(model); App.Window.NavigateModal(null); }
public static void DefaultRules() { Context.Drop(); ImportRulesLocator.SetBehavior(BuildMasumaRules()); ImportRulesLocator.SetBehavior(BuildTissRules()); TargetsLocator.Set(new FileSourceProfile { FilePath = @"C:\Temp\masuma_bigdata.xls", Guid = Guid.NewGuid(), RuleIdentificatorString = "masumaexcel", TransactionIdentificator = "masuma" }); TargetsLocator.Set(new FileSourceProfile { FilePath = @"C:\Temp\tiss.xls", Guid = Guid.NewGuid(), RuleIdentificatorString = "tissexcel", TransactionIdentificator = "tiss" }); }