예제 #1
0
 internal static Start9.Api.Contracts.IModuleContract ViewToContractAdapter(DoubleDeckerBar.Views.IModule view)
 {
     if ((view == null))
     {
         return(null);
     }
     if (view.GetType().Equals(typeof(IModuleContractToViewAddInAdapter)))
     {
         return(((IModuleContractToViewAddInAdapter)(view)).GetSourceContract());
     }
     else
     {
         return(new IModuleViewToContractAddInAdapter(view));
     }
 }
예제 #2
0
 public void SaveConfiguration(DoubleDeckerBar.Views.IModule module)
 {
     _contract.SaveConfiguration(DoubleDeckerBar.Adapters.IModuleAddInAdapter.ViewToContractAdapter(module));
 }
예제 #3
0
 public IModuleViewToContractAddInAdapter(DoubleDeckerBar.Views.IModule view)
 {
     _view = view;
 }