Exemplo n.º 1
0
 private void OnShowOrderStatesExecute(OrderStateGroup orderStateGroup)
 {
     var orderStateData = new OrderStateData
                            {
                                SelectedOrders = SelectedOrders,
                                OrderStateGroup = orderStateGroup,
                                Ticket = SelectedTicket
                            };
     orderStateData.PublishEvent(EventTopicNames.SelectOrderState);
 }
        private void OnOrderStateSelected(OrderStateButtonViewModel orderState)
        {
            var orderStateData = new OrderStateData
                                   {
                                       OrderStateGroup = SelectedOrderStateData.OrderStateGroup,
                                       SelectedOrderState = orderState.Model,
                                       Ticket = SelectedTicket
                                   };

            orderStateData.PublishEvent(EventTopicNames.OrderStateSelected, true);

            OrderStates.ToList().ForEach(x => x.Refresh());
        }