Beispiel #1
0
        protected virtual void SendCrudMessage(CrudOperationMessage.CrudOperation operation, CrudOperationMessage.CrudResult result)
        {
            // Raise update error
            CrudOperationMessage crudMessage = new CrudOperationMessage(operation, result);

            eventAggregator.Publish <CrudOperationMessage>(crudMessage);
        }
Beispiel #2
0
        private void CrudOperationMessageHandler(CrudOperationMessage message)
        {
            // This presenter only cares about the update operation
            switch (message.Operation)
            {
            case CrudOperationMessage.CrudOperation.Update:
                UpdateCrudMessage(message.Result);
                break;

            default:
                break;
            }
        }