コード例 #1
0
 internal static Start9.Api.Contracts.IHostContract ViewToContractAdapter(DoubleDeckerBar.Views.IHost view)
 {
     if ((view == null))
     {
         return(null);
     }
     if (view.GetType().Equals(typeof(IHostContractToViewAddInAdapter)))
     {
         return(((IHostContractToViewAddInAdapter)(view)).GetSourceContract());
     }
     else
     {
         return(new IHostViewToContractAddInAdapter(view));
     }
 }
コード例 #2
0
 public IHostViewToContractAddInAdapter(DoubleDeckerBar.Views.IHost view)
 {
     _view = view;
 }
コード例 #3
0
 public void Initialize(DoubleDeckerBar.Views.IHost host)
 {
     _contract.Initialize(DoubleDeckerBar.Adapters.IHostAddInAdapter.ViewToContractAdapter(host));
 }