/// <summary> /// Allow this mediator to listen to an event that the IPublisherControl publishes /// </summary> /// <param name="control"></param> public void MapEventToControl(IPublisherControl pubControl, IReceiverControl recControl) { pubControl.InteractionOccursEvent += recControl.AddItemToList; }
public CrmPublisher(IBusControl busControl, IOrganizationService service, IPublisherControl publisherControl) { _busControl = busControl; _service = service; _publisherControl = publisherControl; }
/// <summary> /// Implement method to map event from a form to a method in another form /// </summary> /// <param name="parControl">Publisher form</param> /// <param name="childControl">Receiver form</param> public void MapEventControlToControl(IPublisherControl pubControl, IReceiverControl recControl) { pubControl.ActionOccursEvent += recControl.UpdateText; }