private void NextWalk(Type type, WalkInfo walkInfo)
        {
            if (!_types.Contains(type))
            {
                _types.Add(type);
            }

            NextWalk <List <Type>, WalkInfo>(GeNextWalkInfo(type, walkInfo), typeof(IEntityMapperConfigPropertyWalker), typeof(IEntityMapperConfigPropertyWalkerVisitor));
        }
 private WalkInfo GeNextWalkInfo(Type type, WalkInfo walkInfo)
 {
     return(new WalkInfo
     {
         Type = type,
         GenericDefinition = typeof(Entity <>),
         WalkedTypes = walkInfo.WalkedTypes.ToList(),
         Fields = walkInfo.Fields
     });
 }
        public override void Visit(PropertyInfo property, WalkInfo walkInfo)
        {
            if (property.PropertyType.IsDetailOfRawGeneric(typeof(Entity <>)))
            {
                var type = property.PropertyType.IsListOfRawGeneric(typeof(Entity <>)) ?
                           property.PropertyType.BaseGenericType().GenericTypeArguments[0] :
                           property.PropertyType;

                NextWalk(type, walkInfo);
            }
        }
 public void ExportPDF()
 {
     if (AnimalWalks != null && AnimalWalks.Count() != 0)
     {
         DocumentManager.ExportDataPDF(WalkInfo.ConvertToList(AnimalWalks), "Export zvířata");
     }
     else
     {
         MessageBox.Show("Žádná data pro export.");
     }
 }
 public bool IsWalkable(WalkInfo walkInfo)
 {
     return((Type != TileIndex.Empty) && placedFurniture.IsWalkable(walkInfo));
 }
 public void OnStandOver(WalkInfo walkInfo)
 {
     placedFurniture.OnStandOver(walkInfo);
 }
 public override List <Type> Output(WalkInfo walkInfo)
 {
     return(_types);
 }
 public override bool IsWalkable(WalkInfo walkInfo)
 {
     return(false);
 }
Exemple #9
0
 public void OnStandOver(WalkInfo walkInfo)
 {
     return;
 }
Exemple #10
0
 public bool IsWalkable(WalkInfo walkInfo)
 {
     return(false);
 }
 public virtual void OnStandOver(WalkInfo walkInfo)
 {
 }
 public abstract bool IsWalkable(WalkInfo walkInfo);