public void EventHandler(Guanwu.Notify.IPipelineMessageEventArgsContract args)
 {
     Guanwu.Notify.Views.PipelineMessageEventArgs adaptedArgs;
     adaptedArgs = Guanwu.Notify.AddInSideAdapters.PipelineMessageEventArgsAddInAdapter.ContractToViewAdapter(args);
     object[] argsArray = new object[1];
     argsArray[0] = adaptedArgs;
     _event.Invoke(_view, argsArray);
 }
示例#2
0
 public PipelineMessageEventArgsContractToViewHostAdapter(Guanwu.Notify.IPipelineMessageEventArgsContract contract)
 {
     _contract = contract;
     _handle   = new System.AddIn.Pipeline.ContractHandle(contract);
 }
 internal static Guanwu.Notify.Views.PipelineMessageEventArgs ContractToViewAdapter(Guanwu.Notify.IPipelineMessageEventArgsContract contract)
 {
     if ((contract == null))
     {
         return(null);
     }
     if (((System.Runtime.Remoting.RemotingServices.IsObjectOutOfAppDomain(contract) != true) &&
          contract.GetType().Equals(typeof(PipelineMessageEventArgsViewToContractAddInAdapter))))
     {
         return(((PipelineMessageEventArgsViewToContractAddInAdapter)(contract)).GetSourceView());
     }
     else
     {
         return(new PipelineMessageEventArgsContractToViewAddInAdapter(contract));
     }
 }