public static int GetIntegerValue(NavigatorSearchAllowance SearchAllowance)
 {
     switch (SearchAllowance)
     {
         default:
         case NavigatorSearchAllowance.NOTHING:
             return 0;
         case NavigatorSearchAllowance.SHOW_MORE:
             return 1;
         case NavigatorSearchAllowance.GO_BACK:
             return 2;
     }
 }
Example #2
0
 public SearchResultList(int Id, string Category, string CategoryIdentifier, string PublicName, bool CanDoActions, int Colour, int RequiredRank, NavigatorViewMode ViewMode, string CategoryType, string SearchAllowance, int OrderId)
 {
     this._id              = Id;
     this._category        = Category;
     this._categoryName    = CategoryIdentifier;
     this._customName      = PublicName;
     this._canDoActions    = CanDoActions;
     this._colour          = Colour;
     this._requiredRank    = RequiredRank;
     this._viewMode        = ViewMode;
     this._categoryType    = NavigatorCategoryTypeUtility.GetCategoryTypeByString(CategoryType);
     this._searchAllowance = NavigatorSearchAllowanceUtility.GetSearchAllowanceByString(SearchAllowance);
     this._orderId         = OrderId;
 }
Example #3
0
 public SearchResultList(int Id, string Category, string CategoryIdentifier, string PublicName, bool CanDoActions, int Colour, int RequiredRank, NavigatorViewMode ViewMode, string CategoryType, string SearchAllowance, int OrderId)
 {
     this._id = Id;
     this._category = Category;
     this._categoryName = CategoryIdentifier;
     this._customName = PublicName;
     this._canDoActions = CanDoActions;
     this._colour = Colour;
     this._requiredRank = RequiredRank;
     this._viewMode = ViewMode;
     this._categoryType = NavigatorCategoryTypeUtility.GetCategoryTypeByString(CategoryType);
     this._searchAllowance = NavigatorSearchAllowanceUtility.GetSearchAllowanceByString(SearchAllowance);
     this._orderId = OrderId;
 }
        public static int GetIntegerValue(NavigatorSearchAllowance SearchAllowance)
        {
            switch (SearchAllowance)
            {
            default:
            case NavigatorSearchAllowance.NOTHING:
                return(0);

            case NavigatorSearchAllowance.SHOW_MORE:
                return(1);

            case NavigatorSearchAllowance.GO_BACK:
                return(2);
            }
        }
Example #5
0
        public static int GetIntegerValue(NavigatorSearchAllowance SearchAllowance)
        {
            switch (SearchAllowance)
            {
            default:
            case NavigatorSearchAllowance.Nothing:
                return(0);

            case NavigatorSearchAllowance.ShowMore:
                return(1);

            case NavigatorSearchAllowance.GoBack:
                return(2);
            }
        }