public IReceiverContractViewToContractAddInAdapter(ExperienceMenu.Views.IReceiverContract view)
 {
     _view = view;
 }
Beispiel #2
0
 internal static Start9.Api.Contracts.IReceiverContractContract ViewToContractAdapter(ExperienceMenu.Views.IReceiverContract view)
 {
     if ((view == null))
     {
         return(null);
     }
     if (view.GetType().Equals(typeof(IReceiverContractContractToViewAddInAdapter)))
     {
         return(((IReceiverContractContractToViewAddInAdapter)(view)).GetSourceContract());
     }
     else
     {
         return(new IReceiverContractViewToContractAddInAdapter(view));
     }
 }