Ejemplo n.º 1
0
 internal static ILocation V2C(VLocation view)
 {
     if (!System.Runtime.Remoting.RemotingServices.IsObjectOutOfAppDomain(view) &&
         (view.GetType().Equals(typeof(LocationC2V))))
     {
         return(((LocationC2V)(view)).GetSourceContract());
     }
     else
     {
         return(new LocationV2C(view));
     }
 }
Ejemplo n.º 2
0
        public int CheckSum()
        {
            int ret = 0;

            ret += VMake.CalCheckSum();
            ret += VModel.CalCheckSum();
            ret += VYear.CalCheckSum();
            ret += VType.ToDescription().CalCheckSum();
            ret += VVIN.CalCheckSum();
            ret += VRegion.CalCheckSum();
            ret += VLocation.CalCheckSum();
            ret += VStatus.ToString().CalCheckSum();

            return(ret);
        }
Ejemplo n.º 3
0
 public LocationV2C(VLocation view)
 {
     _view = view;
 }