private void OnRecurrenceClientsOk(IStale <ResponseMessageData <RecurrenceResponseModel> > obj)
        {
            if (obj.IsStale)
            {
                return;
            }

            if (obj.Data.IsSuccess == false || obj.Data.Data == null || obj.Data.Data.LstRecurrence.Count == 0)
            {
                return;
            }

            RxApp.MainThreadScheduler.Schedule(_ =>
            {
                var lstClientRecurrence = obj.Data.Data.LstRecurrence;

                foreach (var clientRecurrence in lstClientRecurrence)
                {
                    var client = LstClients.FirstOrDefault(e => e.ClientInfo.ClientId == clientRecurrence.ClientId);

                    if (client == null)
                    {
                        continue;
                    }

                    client.ClientInfo.LstRecurrence = clientRecurrence.ToListRecurrence();
                }
            });
        }
        private void OnPropagate(PropagateOrderModel model)
        {
            var client = LstClients.FirstOrDefault(e => e.ClientInfo.ClientId == model.Order.ClientId);

            if (client == null)
            {
                return;
            }

            RxApp.MainThreadScheduler.Schedule(_ => { ClientSelection = client; });

            if (model.Order != null)
            {
                MessageBus.Current.SendMessage(model, SharedMessageConstants.PROPAGATE_LASTORDER_ADDRESS);
            }
        }
        private void OnRemoveDone(IStale <ResponseMessageData <bool> > obj, ClientInfoGrid clInfo)
        {
            if (obj.IsStale)
            {
                OnRemoveError(Resources.Network.ResNetwork.ERROR_NETWORK_DOWN);
                return;
            }

            if (obj.Data.IsSuccess == false)
            {
                OnRemoveError(obj.Data.Message);
                return;
            }

            RxApp.MainThreadScheduler.Schedule(_ =>
            {
                var client = LstClients.FirstOrDefault(e => e.ClientPreId == clInfo.ClientPreId);
                if (client != null)
                {
                    LstClients.Remove(client);
                }
            });
        }