Beispiel #1
0
        public AreaModel GetArea(string areaGUID)
        {
            AreaModel area = null;

            if (AreaSubsDict != null)
            {
                area = AreaSubsDict[areaGUID];
            }
            return(area);
        }
Beispiel #2
0
 public void SetDefaultAreaIfNeeded()
 {
     if (string.IsNullOrEmpty(SL.AreaGUID))
     {
         AreaModel area = GetFirstArea();
         if (area != null)
         {
             SL.AreaGUID = area.areaGUID;
         }
     }
     else
     {
         if (GetArea(SL.AreaGUID) == null)
         {
             AreaModel area = GetFirstArea();
             SL.AreaGUID = area != null ? area.areaGUID : string.Empty;
         }
     }
 }
Beispiel #3
0
        public AreaModel GetFirstArea()
        {
            AreaModel firstItem = AreaSubsList != null && AreaSubsList.Count > 0 ? AreaSubsList[0] : null;//SuggestedAreaList != null && SuggestedAreaList.Count > 0 ? SuggestedAreaList[0] : null;

            return(firstItem);
        }