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)); } }
public IHostViewToContractAddInAdapter(DoubleDeckerBar.Views.IHost view) { _view = view; }
public void Initialize(DoubleDeckerBar.Views.IHost host) { _contract.Initialize(DoubleDeckerBar.Adapters.IHostAddInAdapter.ViewToContractAdapter(host)); }