Exemplo n.º 1
0
 /// <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;
 }
Exemplo n.º 3
0
 /// <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;
 }