internal static Guanwu.Notify.IPluginContract ViewToContractAdapter(Guanwu.Notify.Views.IPlugin view)
 {
     if ((view == null))
     {
         return(null);
     }
     if (view.GetType().Equals(typeof(IPluginContractToViewAddInAdapter)))
     {
         return(((IPluginContractToViewAddInAdapter)(view)).GetSourceContract());
     }
     else
     {
         return(new IPluginViewToContractAddInAdapter(view));
     }
 }
 public IPluginViewToContractHostAdapter(Guanwu.Notify.Views.IPlugin view)
 {
     _view = view;
 }