コード例 #1
0
 public bool Equals(NakedObjectWrapper other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(other.nakedObject, nakedObject));
 }
 public INakedObjectSurface GetDefault(INakedObjectSurface nakedObject)
 {
     return(NakedObjectWrapper.Wrap(nakedObjectActionParameter.GetDefault(((NakedObjectWrapper)nakedObject).WrappedNakedObject), Surface, framework));
 }
 public INakedObjectSurface[] GetCompletions(INakedObjectSurface nakedObject, string autoCompleteParm)
 {
     return(nakedObjectActionParameter.GetCompletions(((NakedObjectWrapper)nakedObject).WrappedNakedObject, autoCompleteParm).Select(no => NakedObjectWrapper.Wrap(no, Surface, framework)).Cast <INakedObjectSurface>().ToArray());
 }
 public INakedObjectSurface[] GetChoices(INakedObjectSurface nakedObject, IDictionary <string, INakedObjectSurface> parameterNameValues)
 {
     return(nakedObjectActionParameter.GetChoices(((NakedObjectWrapper)nakedObject).WrappedNakedObject, null).Select(no => NakedObjectWrapper.Wrap(no, Surface, framework)).Cast <INakedObjectSurface>().ToArray());
 }
コード例 #5
0
 public bool Equals(NakedObjectWrapper other) {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return Equals(other.nakedObject, nakedObject);
 }
コード例 #6
0
        public INakedObjectSurface[] GetCompletions(INakedObjectSurface target, string autoCompleteParm)
        {
            var oneToOneFeature = assoc as IOneToOneFeatureSpec;

            return(oneToOneFeature != null?oneToOneFeature.GetCompletions(((NakedObjectWrapper)target).WrappedNakedObject, autoCompleteParm).Select(no => NakedObjectWrapper.Wrap(no, Surface, framework)).Cast <INakedObjectSurface>().ToArray() : null);
        }
コード例 #7
0
        public INakedObjectSurface[] GetChoices(INakedObjectSurface target, IDictionary <string, INakedObjectSurface> parameterNameValues)
        {
            var oneToOneFeature = assoc as IOneToOneFeatureSpec;

            return(oneToOneFeature != null?oneToOneFeature.GetChoices(((NakedObjectWrapper)target).WrappedNakedObject, null).Select(no => NakedObjectWrapper.Wrap(no, Surface, framework)).Cast <INakedObjectSurface>().ToArray() : null);
        }
コード例 #8
0
        public INakedObjectSurface GetNakedObject(INakedObjectSurface target)
        {
            INakedObject result = assoc.GetNakedObject(((NakedObjectWrapper)target).WrappedNakedObject);

            return(NakedObjectWrapper.Wrap(result, Surface, framework));
        }