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; }
/// <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; }
/// <summary> /// Construct a crossing point. /// Two routes that have nothing in common. /// </summary> public RoutedPoint() { Target = MapRef.Empty; Direction = Direction.Empty; }
/// <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; }
public RoutePoint(int x, int y) { Location = new MapRef(x, y); }