protected bool ExecuteCore(WorklistItemSummaryBase item) { var list = new List <TItem>(this.Context.SelectedItems); var orderRefs = CollectionUtils.Map <TItem, EntityRef>(list, x => x.OrderRef); var component = new MergeOrdersComponent(orderRefs); string failureReason; if (!ValidateMergeRequest(orderRefs, out failureReason)) { this.Context.DesktopWindow.ShowMessageBox(failureReason, MessageBoxActions.Ok); return(false); } var args = new DialogBoxCreationArgs(component, SR.TitleMergeOrders, null) { AllowUserResize = true }; if (ApplicationComponentExitCode.Accepted != ApplicationComponent.LaunchAsDialog(this.Context.DesktopWindow, args)) { return(false); } InvalidateFolders(); return(true); }
public MergeOrdersContext(MergeOrdersComponent owner) { _owner = owner; }