コード例 #1
0
        private async void Complete(object param)
        {
            ClearMessages();
            IsBusy = true;

            var state = param as EntityBase;

            state.InProgress = true;

            try
            {
                var currentState = await remediationService.CompleteStateAsync(state);
            }
            catch (StateException ex)
            {
                ShowMessage(new Message()
                {
                    MessageType = MessageType.Warn, Text = ex.Message
                }, true);
            }
            catch (Exception ex)
            {
                ShowMessage(new Message()
                {
                    MessageType = MessageType.Error, Text = ex.Message
                });
            }
            finally
            {
                IsBusy           = false;
                state.InProgress = false;
                CurrentCustomer.Refresh();
            }
        }