public void EventHandler(Guanwu.Notify.IPipelineEventEventArgsContract args)
 {
     Guanwu.Notify.Views.PipelineEventEventArgs adaptedArgs;
     adaptedArgs = Guanwu.Notify.AddInSideAdapters.PipelineEventEventArgsAddInAdapter.ContractToViewAdapter(args);
     object[] argsArray = new object[1];
     argsArray[0] = adaptedArgs;
     _event.Invoke(_view, argsArray);
 }
 public PipelineEventEventArgsContractToViewHostAdapter(Guanwu.Notify.IPipelineEventEventArgsContract contract)
 {
     _contract = contract;
     _handle   = new System.AddIn.Pipeline.ContractHandle(contract);
 }
Exemplo n.º 3
0
 internal static Guanwu.Notify.Views.PipelineEventEventArgs ContractToViewAdapter(Guanwu.Notify.IPipelineEventEventArgsContract contract)
 {
     if ((contract == null))
     {
         return(null);
     }
     if (((System.Runtime.Remoting.RemotingServices.IsObjectOutOfAppDomain(contract) != true) &&
          contract.GetType().Equals(typeof(PipelineEventEventArgsViewToContractHostAdapter))))
     {
         return(((PipelineEventEventArgsViewToContractHostAdapter)(contract)).GetSourceView());
     }
     else
     {
         return(new PipelineEventEventArgsContractToViewHostAdapter(contract));
     }
 }