Ejemplo n.º 1
0
        public NewsViewModel(string subType)
        {
            Initialize();
            String subTypeId = MapRef.Select(x => x.Value).Where(x => x.CD == subType).First().ID.ToString();

            ArticleItemList = String.Equals(subType, MapTitle.First().Key.ToString()) ?
                              new ArticleItemServices().GetNewsList() : new ArticleItemServices().GetNewsList(subTypeId);
            Article_Count = ArticleItemList.Count();
            ListType      = subType;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// One or more routes with a common target and direction
 /// </summary>
 /// <param name="target"></param>
 /// <param name="direction"></param>
 public RoutedPoint(MapRef target, Direction direction)
 {
     Target    = target;
     Direction = direction;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Construct a crossing point.
 /// Two routes that have nothing in common.
 /// </summary>
 public RoutedPoint()
 {
     Target    = MapRef.Empty;
     Direction = Direction.Empty;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Construct a join point.
 /// Two routes to a common target from different directions
 /// </summary>
 /// <param name="target"></param>
 public RoutedPoint(MapRef target)
 {
     Target    = target;
     Direction = Direction.Empty;
 }
Ejemplo n.º 5
0
 public RoutePoint(int x, int y)
 {
     Location = new MapRef(x, y);
 }