public virtual void MessageReceivedEventRemove(Start9.Api.Contracts.IMessageEventHandlerContract handler)
 {
     System.EventHandler <Sideshow.Views.MessageReceivedEventArgs> adaptedHandler;
     if (MessageReceived_handlers.TryGetValue(handler, out adaptedHandler))
     {
         MessageReceived_handlers.Remove(handler);
         _view.MessageReceived -= adaptedHandler;
     }
 }
 public IMessageEventHandlerContractToViewAddInAdapter(Start9.Api.Contracts.IMessageEventHandlerContract contract)
 {
     _contract = contract;
     _handle   = new System.AddIn.Pipeline.ContractHandle(contract);
 }
 public virtual void MessageReceivedEventAdd(Start9.Api.Contracts.IMessageEventHandlerContract handler)
 {
     System.EventHandler <Sideshow.Views.MessageReceivedEventArgs> adaptedHandler = new System.EventHandler <Sideshow.Views.MessageReceivedEventArgs>(new Sideshow.Adapters.IMessageEventHandlerContractToViewAddInAdapter(handler).Handler);
     _view.MessageReceived            += adaptedHandler;
     MessageReceived_handlers[handler] = adaptedHandler;
 }
 public virtual void MessageSentEventAdd(Start9.Api.Contracts.IMessageEventHandlerContract handler)
 {
     System.EventHandler <Start9.Host.Views.MessageReceivedEventArgs> adaptedHandler = new System.EventHandler <Start9.Host.Views.MessageReceivedEventArgs>(new Start9.Host.Adapters.IMessageEventHandlerContractToViewHostAdapter(handler).Handler);
     _view.MessageSent            += adaptedHandler;
     MessageSent_handlers[handler] = adaptedHandler;
 }