private void RaiseOpenCustomerProfileInteractionRequest() { if (InnerItem != null && InnerItem.CustomerId != null) { var parameters = new[] { new KeyValuePair <string, object>("customerId", InnerItem.CustomerId), new KeyValuePair <string, object>("fullName", InnerItem.CustomerName), }; var itemVM = _contactVmFactory.GetViewModelInstance(parameters); var confirmation = new ConditionalConfirmation { Title = "Edit customer profile".Localize(), Content = itemVM }; CommonOrderCommandConfirmRequest.Raise(confirmation, (x) => { if (x.Confirmed) { var content = (x.Content as IOrderContactViewModel); InnerItem.CustomerName = content.FullName; } }); } }
private void RaiseHoldOrderInteractionRequest() { CommonOrderCommandConfirmRequest.Raise( new ConditionalConfirmation { Content = "Are you sure you want to put the order 'On Hold'?".Localize(), Title = "Order 'On Hold'".Localize() }, (x) => { if (x.Confirmed) { _innerModel.HoldOrder(); Recalculate(); } }); }
private void RaiseCancelOrderInteractionRequest() { CommonOrderCommandConfirmRequest.Raise( new ConditionalConfirmation { Content = "Are you sure you want to cancel order?".Localize(), Title = "Cancel Order".Localize() }, (x) => { if (x.Confirmed) { _innerModel.CancelOrder(); Recalculate(); } }); }