public void QuickLetter(string templateName) { var mailMergeViewModel = MailMergeViewModel <Order, LinksViewModel> .Create(UnitOfWorkFactory, x => x.Orders, GetSelectedEntityKey(), templateName, LinksViewModel.Create()); DocumentManagerService.CreateDocument("OrderMailMergeView", mailMergeViewModel, null, this).Show(); }
public void QuickLetter(string templateName) { var mailMergeViewModel = MailMergeViewModel <Employee, LinksViewModel> .Create(UnitOfWorkSource.GetUnitOfWorkFactory(), x => x.Employees, Entity == null?null as long? : Entity.Id, templateName, LinksViewModel.Create()); DocumentManagerService.CreateDocument("EmployeeMailMergeView", mailMergeViewModel, null, this).Show(); }
void RegisterJumpList() { #if !CLICKONCE && !DXCORE3 IApplicationJumpListService jumpListService = this.GetService <IApplicationJumpListService>(); jumpListService.Items.AddOrReplace("Become a UI Superhero", "Explore DevExpress Universal", UniversalIcon, () => { LinksViewModel.UniversalSubscription(); }); jumpListService.Items.AddOrReplace("Online Tutorials", "Explore DevExpress Universal", TutorialsIcon, () => { LinksViewModel.GettingStarted(); }); jumpListService.Items.AddOrReplace("Buy Now", "Explore DevExpress Universal", BuyIcon, () => { LinksViewModel.BuyNow(); }); jumpListService.Apply(); #endif }