public virtual void EventRaisingEventRemove(Guanwu.Notify.IPipelineEventEventHandlerContract handler)
 {
     System.EventHandler <Guanwu.Notify.Views.PipelineEventEventArgs> adaptedHandler;
     if (OnEventRaising_handlers.TryGetValue(handler, out adaptedHandler))
     {
         OnEventRaising_handlers.Remove(handler);
         _view.OnEventRaising -= adaptedHandler;
     }
 }
Example #2
0
 public IPipelineEventEventHandlerContractToViewHostAdapter(Guanwu.Notify.IPipelineEventEventHandlerContract contract)
 {
     _contract = contract;
     _handle   = new System.AddIn.Pipeline.ContractHandle(contract);
 }
 public virtual void EventRaisedEventAdd(Guanwu.Notify.IPipelineEventEventHandlerContract handler)
 {
     System.EventHandler <Guanwu.Notify.Views.PipelineEventEventArgs> adaptedHandler = new System.EventHandler <Guanwu.Notify.Views.PipelineEventEventArgs>(new Guanwu.Notify.AddInSideAdapters.IPipelineEventEventHandlerContractToViewAddInAdapter(handler).Handler);
     _view.OnEventRaised            += adaptedHandler;
     OnEventRaised_handlers[handler] = adaptedHandler;
 }