コード例 #1
0
ファイル: LogMediator.cs プロジェクト: sassy224/EventTracker
 /// <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;
 }
コード例 #2
0
 public CrmPublisher(IBusControl busControl, IOrganizationService service, IPublisherControl publisherControl)
 {
     _busControl       = busControl;
     _service          = service;
     _publisherControl = publisherControl;
 }
コード例 #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;
 }