/// <summary> Constructor for a new instance of the Item_Aggregation_Child_Page class </summary>
        /// <param name="Browse_Type">Flag indicates if this is a browse by, browse, or info page</param>
        /// <param name="Source">Source of this browse or info page</param>
        /// <param name="Code">Code for this info or browse page</param>
        /// <param name="Static_HTML_Source">Filename of the static source file for this browse or info page</param>
        /// <param name="Label">Label for this browse or info page which will be displayed on the navigation tab</param>
        public Item_Aggregation_Child_Page(Visibility_Type Browse_Type, Source_Type Source, string Code, string Static_HTML_Source, string Label)
        {
            // Create the collections for the labels and static html source
            Label_Dictionary = new Dictionary<Web_Language_Enum, string>();
            Source_Dictionary = new Dictionary<Web_Language_Enum, string>();

            // Add the parameter information as the default labels and source
            Label_Dictionary[Web_Language_Enum.DEFAULT] = Label;
            Source_Dictionary[Web_Language_Enum.DEFAULT] = Static_HTML_Source;

            // Save all of these parameters
            this.Code = Code;
            this.Browse_Type = Browse_Type;
            this.Source = Source;

            // If this is the special ALL or NEW, then the source will be a database table/set
            if ((Code == "all") || (Code == "new"))
            {
                Data_Type = Result_Data_Type.Table;
            }
            else
            {
                Data_Type = Result_Data_Type.Text;
            }

            // Add the label
            if ( Label.Length > 0 )
                Label_Dictionary[Web_Language_Enum.English] = Label;
        }
Esempio n. 2
0
        /// <summary> Constructor for a new instance of the Item_Aggregation_Child_Page class </summary>
        /// <param name="Browse_Type">Flag indicates if this is a browse by, browse, or info page</param>
        /// <param name="Source">Source of this browse or info page</param>
        /// <param name="Code">Code for this info or browse page</param>
        /// <param name="Static_HTML_Source">Filename of the static source file for this browse or info page</param>
        /// <param name="Label">Label for this browse or info page which will be displayed on the navigation tab</param>
        public Item_Aggregation_Child_Page(Visibility_Type Browse_Type, Source_Type Source, string Code, string Static_HTML_Source, string Label)
        {
            // Create the collections for the labels and static html source
            Label_Dictionary  = new Dictionary <Web_Language_Enum, string>();
            Source_Dictionary = new Dictionary <Web_Language_Enum, string>();

            // Add the parameter information as the default labels and source
            Label_Dictionary[Web_Language_Enum.DEFAULT]  = Label;
            Source_Dictionary[Web_Language_Enum.DEFAULT] = Static_HTML_Source;

            // Save all of these parameters
            this.Code        = Code;
            this.Browse_Type = Browse_Type;
            this.Source      = Source;

            // If this is the special ALL or NEW, then the source will be a database table/set
            if ((Code == "all") || (Code == "new"))
            {
                Data_Type = Result_Data_Type.Table;
            }
            else
            {
                Data_Type = Result_Data_Type.Text;
            }

            // Add the label
            if (Label.Length > 0)
            {
                Label_Dictionary[Web_Language_Enum.English] = Label;
            }
        }