本文整理汇总了C#中SobekCM.Library.Navigation.SobekCM_Navigation_Object类的典型用法代码示例。如果您正苦于以下问题:C# SobekCM_Navigation_Object类的具体用法?C# SobekCM_Navigation_Object怎么用?C# SobekCM_Navigation_Object使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SobekCM_Navigation_Object类属于SobekCM.Library.Navigation命名空间,在下文中一共展示了SobekCM_Navigation_Object类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ManageMenu_ItemViewer
/// <summary> Constructor for a new instance of the ManageMenu_ItemViewer class </summary>
/// <param name="Current_Object"> Digital resource to display </param>
/// <param name="Current_User"> Current user for this session </param>
/// <param name="Current_Mode"> Navigation object which encapsulates the user's current request </param>
public ManageMenu_ItemViewer(SobekCM_Item Current_Object, User_Object Current_User, SobekCM_Navigation_Object Current_Mode)
{
// Save the current user and current mode information (this is usually populated AFTER the constructor completes,
// but in this case (QC viewer) we need the information for early processing
CurrentMode = Current_Mode;
CurrentUser = Current_User;
CurrentItem = Current_Object;
// Determine if this user can edit this item
if (CurrentUser == null)
{
Current_Mode.ViewerCode = String.Empty;
Current_Mode.Redirect();
return;
}
else
{
bool userCanEditItem = CurrentUser.Can_Edit_This_Item(CurrentItem);
if (!userCanEditItem)
{
Current_Mode.ViewerCode = String.Empty;
Current_Mode.Redirect();
return;
}
}
}
示例2: Menu_Get_Nav_Bar_HTML
/// <summary> Returns the HTML for one element within tab which appears over the search box in the collection view </summary>
/// <param name="ThisView"> Collection view type for this tab </param>
/// <param name="Current_Mode"> Mode / navigation information for the current request, to see if the tab is currently selected or not and determine current skin language </param>
/// <param name="Translations"> Language support object for writing the name of the view in the appropriate interface language </param>
/// <returns> HTML to display the tab, including the link if it is not currently selected </returns>
public static string Menu_Get_Nav_Bar_HTML(Item_Aggregation.CollectionViewsAndSearchesEnum ThisView, SobekCM_Navigation_Object Current_Mode, Language_Support_Info Translations )
{
string skinCode = Current_Mode.Base_Skin;
switch (ThisView)
{
case Item_Aggregation.CollectionViewsAndSearchesEnum.Advanced_Search:
case Item_Aggregation.CollectionViewsAndSearchesEnum.Advanced_Search_YearRange:
return Menu_HTML_Helper(skinCode, Search_Type_Enum.Advanced, Translations.Get_Translation("ADVANCED SEARCH", Current_Mode.Language), Current_Mode);
case Item_Aggregation.CollectionViewsAndSearchesEnum.Basic_Search:
case Item_Aggregation.CollectionViewsAndSearchesEnum.Basic_Search_YearRange:
return Menu_HTML_Helper(skinCode, Search_Type_Enum.Basic, Translations.Get_Translation("BASIC SEARCH", Current_Mode.Language), Current_Mode);
case Item_Aggregation.CollectionViewsAndSearchesEnum.Map_Search:
return Menu_HTML_Helper(skinCode, Search_Type_Enum.Map, Translations.Get_Translation("MAP SEARCH", Current_Mode.Language), Current_Mode);
case Item_Aggregation.CollectionViewsAndSearchesEnum.Map_Search_Beta:
return Menu_HTML_Helper(skinCode, Search_Type_Enum.Map_Beta, Translations.Get_Translation("MAP SEARCH", Current_Mode.Language), Current_Mode);
case Item_Aggregation.CollectionViewsAndSearchesEnum.Newspaper_Search:
return Menu_HTML_Helper(skinCode, Search_Type_Enum.Newspaper, Translations.Get_Translation("NEWSPAPER SEARCH", Current_Mode.Language), Current_Mode);
case Item_Aggregation.CollectionViewsAndSearchesEnum.Admin_View:
return String.Empty; // HTML_Helper(Skin_Code, SobekCM.Library.Navigation.Search_Type_Enum.Admin_View, Translations.Get_Translation("ADMIN", Current_Mode.Language), Current_Mode, Downward_Tabs);
case Item_Aggregation.CollectionViewsAndSearchesEnum.DLOC_FullText_Search:
return Menu_HTML_Helper(skinCode, Search_Type_Enum.dLOC_Full_Text, Translations.Get_Translation("TEXT SEARCH", Current_Mode.Language), Current_Mode);
case Item_Aggregation.CollectionViewsAndSearchesEnum.FullText_Search:
return Menu_HTML_Helper(skinCode, Search_Type_Enum.Full_Text, Translations.Get_Translation("TEXT SEARCH", Current_Mode.Language), Current_Mode);
}
return String.Empty;
}
示例3: Get_Nav_Bar_HTML
/// <summary> Returns the HTML for one tab which appears over the search box in the collection view </summary>
/// <param name="thisView"> Collection view type for this tab </param>
/// <param name="Current_Mode"> Mode / navigation information for the current request, to see if the tab is currently selected or not and determine current skin language </param>
/// <param name="Translations"> Language support object for writing the name of the view in the appropriate interface language </param>
/// <param name="Downward_Tabs"> Flag indicates if this tab faces downward, rather than the default upward </param>
/// <returns> HTML to display the tab, including the link if it is not currently selected </returns>
public static string Get_Nav_Bar_HTML( Item_Aggregation.CollectionViewsAndSearchesEnum thisView, SobekCM_Navigation_Object Current_Mode, Language_Support_Info Translations, bool Downward_Tabs )
{
string skinCode = Current_Mode.Base_Skin;
switch (thisView)
{
case Item_Aggregation.CollectionViewsAndSearchesEnum.Advanced_Search:
if (Current_Mode.Is_Robot)
{
return "<img src=\"" + Current_Mode.Base_URL + "design/skins/" + skinCode + "/tabs/cL.gif\" border=\"0\" class=\"tab_image\" alt=\"\" /><span class=\"tab\"> ADVANCED SEARCH </span><img src=\"" + Current_Mode.Base_URL + "design/skins/" + skinCode + "/tabs/cR.gif\" border=\"0\" class=\"tab_image\" alt=\"\" />" + Environment.NewLine ;
}
return HTML_Helper(skinCode, Search_Type_Enum.Advanced, Translations.Get_Translation("ADVANCED SEARCH", Current_Mode.Language), Current_Mode, Downward_Tabs);
case Item_Aggregation.CollectionViewsAndSearchesEnum.Basic_Search:
return HTML_Helper(skinCode, Search_Type_Enum.Basic, Translations.Get_Translation("BASIC SEARCH", Current_Mode.Language), Current_Mode, Downward_Tabs);
case Item_Aggregation.CollectionViewsAndSearchesEnum.Map_Search:
return HTML_Helper(skinCode, Search_Type_Enum.Map, Translations.Get_Translation("MAP SEARCH", Current_Mode.Language), Current_Mode, Downward_Tabs);
case Item_Aggregation.CollectionViewsAndSearchesEnum.Newspaper_Search:
return HTML_Helper(skinCode, Search_Type_Enum.Newspaper, Translations.Get_Translation("NEWSPAPER SEARCH", Current_Mode.Language), Current_Mode, Downward_Tabs);
case Item_Aggregation.CollectionViewsAndSearchesEnum.Admin_View:
return String.Empty; // HTML_Helper(Skin_Code, SobekCM.Library.Navigation.Search_Type_Enum.Admin_View, Translations.Get_Translation("ADMIN", Current_Mode.Language), Current_Mode, Downward_Tabs);
case Item_Aggregation.CollectionViewsAndSearchesEnum.dLOC_FullText_Search:
return HTML_Helper(skinCode, Search_Type_Enum.dLOC_Full_Text, Translations.Get_Translation("TEXT SEARCH", Current_Mode.Language), Current_Mode, Downward_Tabs);
case Item_Aggregation.CollectionViewsAndSearchesEnum.FullText_Search:
return HTML_Helper(skinCode, Search_Type_Enum.Full_Text, Translations.Get_Translation("TEXT SEARCH", Current_Mode.Language), Current_Mode, Downward_Tabs);
}
return String.Empty;
}
示例4: Get_Viewer
/// <summary> Returns a built collection viewer matching request </summary>
/// <param name="ViewType"> Aggregation view type </param>
/// <param name="Current_Aggregation"> Current item aggregation object </param>
/// <param name="Current_Mode"> Mode / navigation information for the current request </param>
/// <returns> Collection viewer that extends the <see cref="abstractAggregationViewer"/> class. </returns>
public static abstractAggregationViewer Get_Viewer(Item_Aggregation.CollectionViewsAndSearchesEnum ViewType, Item_Aggregation Current_Aggregation, SobekCM_Navigation_Object Current_Mode )
{
switch (ViewType)
{
case Item_Aggregation.CollectionViewsAndSearchesEnum.Advanced_Search:
return new Advanced_Search_AggregationViewer(Current_Aggregation, Current_Mode);
case Item_Aggregation.CollectionViewsAndSearchesEnum.Basic_Search:
string frontBannerImage = Current_Aggregation.Front_Banner_Image(Current_Mode.Language);
if ((frontBannerImage.Length > 0) && (Current_Aggregation.Highlights.Count > 0))
{
return new Rotating_Highlight_Search_AggregationViewer(Current_Aggregation, Current_Mode);
}
return new Basic_Search_AggregationViewer(Current_Aggregation, Current_Mode);
case Item_Aggregation.CollectionViewsAndSearchesEnum.FullText_Search:
return new Full_Text_Search_AggregationViewer(Current_Aggregation, Current_Mode );
case Item_Aggregation.CollectionViewsAndSearchesEnum.No_Home_Search:
return new No_Search_AggregationViewer();
case Item_Aggregation.CollectionViewsAndSearchesEnum.Newspaper_Search:
return new Newspaper_Search_AggregationViewer(Current_Aggregation, Current_Mode);
case Item_Aggregation.CollectionViewsAndSearchesEnum.Map_Search:
return new Map_Search_AggregationViewer(Current_Aggregation, Current_Mode);
case Item_Aggregation.CollectionViewsAndSearchesEnum.dLOC_FullText_Search:
return new dLOC_Search_AggregationViewer(Current_Aggregation, Current_Mode);
default:
return null;
}
}
示例5: Aware_JP2_ItemViewer
/// <summary> Constructor for a new instance of the Aware_JP2_ItemViewer class </summary>
/// <param name="Attributes"> Attributes for the JPEG2000 file to display, including width and height</param>
/// <param name="Resource_Type"> Resource type for the item being displayed; this affects the overall rendering style </param>
public Aware_JP2_ItemViewer( string Resource_Type, string Attributes, SobekCM_Navigation_Object Current_Mode )
{
resourceType = Resource_Type;
width = 0;
height = 0;
zoomlevels = 0;
// Parse if there were attributes
if (Attributes.Length <= 0) return;
string[] splitter = Attributes.Split(";".ToCharArray());
foreach (string thisSplitter in splitter)
{
if (thisSplitter.ToUpper().IndexOf("WIDTH") >= 0)
{
Int32.TryParse(thisSplitter.Substring(thisSplitter.IndexOf("=") + 1), out width);
}
if (thisSplitter.ToUpper().IndexOf("HEIGHT") >= 0)
{
Int32.TryParse(thisSplitter.Substring(thisSplitter.IndexOf("=") + 1), out height);
}
}
this.CurrentMode = Current_Mode;
handle_postback();
}
示例6: Saved_Searches_MySobekViewer
/// <summary> Constructor for a new instance of the Saved_Searches_MySobekViewer class </summary>
/// <param name="User"> Authenticated user information </param>
/// <param name="Translator"> Translation / language support object for writing the user interface is multiple languages</param>
/// <param name="currentMode"> Mode / navigation information for the current request</param>
/// <param name="Tracer">Trace object keeps a list of each method executed and important milestones in rendering</param>
public Saved_Searches_MySobekViewer(User_Object User,
Language_Support_Info Translator,
SobekCM_Navigation_Object currentMode,
Custom_Tracer Tracer)
: base(User)
{
Tracer.Add_Trace("Saved_Searches_MySobekViewer.Constructor", String.Empty);
user = User;
base.Translator = Translator;
if (currentMode.isPostBack)
{
// Pull the standard values
NameValueCollection form = HttpContext.Current.Request.Form;
string item_action = form["item_action"].ToUpper().Trim();
string folder_id = form["folder_id"].Trim();
if (item_action == "REMOVE")
{
int folder_id_int;
if (Int32.TryParse(folder_id, out folder_id_int))
SobekCM_Database.Delete_User_Search(folder_id_int, Tracer);
}
HttpContext.Current.Response.Redirect(HttpContext.Current.Items["Original_URL"].ToString());
}
}
示例7: Web_Content_HtmlSubwriter
/// <summary> Constructor for a new instance of the Web_Content_HtmlSubwriter class </summary>
/// <param name="Hierarchy_Object"> Current item aggregation object to display </param>
/// <param name="Current_Mode"> Mode / navigation information for the current request</param>
/// <param name="HTML_Skin"> HTML Web skin which controls the overall appearance of this digital library </param>
/// <param name="Static_Web_Content"> Object contains all the basic information about this info display </param>
/// <param name="Site_Map"> Optional site map object used to render a navigational tree-view on left side of page</param>
public Web_Content_HtmlSubwriter(Item_Aggregation Hierarchy_Object, SobekCM_Navigation_Object Current_Mode, SobekCM_Skin_Object HTML_Skin, HTML_Based_Content Static_Web_Content, SobekCM_SiteMap Site_Map)
{
base.Current_Aggregation = Hierarchy_Object;
currentMode = Current_Mode;
Skin = HTML_Skin;
thisStaticBrowseObject = Static_Web_Content;
siteMap = Site_Map;
// If there is a sitemap, check if this is a robot request and then if the URL
// for the sitemap pages is URL restricted
if ((siteMap != null) && (siteMap.Is_URL_Restricted_For_Robots) && (currentMode.Is_Robot))
{
if (currentMode.Base_URL != siteMap.Restricted_Robot_URL)
{
currentMode.Base_URL = siteMap.Restricted_Robot_URL;
string redirect_url = currentMode.Redirect_URL();
HttpContext.Current.Response.Status = "301 Moved Permanently";
HttpContext.Current.Response.AddHeader("Location", redirect_url);
HttpContext.Current.ApplicationInstance.CompleteRequest();
currentMode.Request_Completed = true;
return;
}
}
}
示例8: Builder_AdminViewer
/// <summary> Constructor for a new instance of the Builder_AdminViewer class </summary>
/// <param name="User"> Authenticated user information </param>
/// <param name="Current_Mode"> Mode / navigation information for the current request</param>
public Builder_AdminViewer(User_Object User, SobekCM_Navigation_Object Current_Mode)
: base(User)
{
currentMode = Current_Mode;
// Ensure the user is the system admin
if ((User == null) || ((!User.Is_System_Admin) && (!User.Is_Portal_Admin )))
{
Current_Mode.Mode = Display_Mode_Enum.My_Sobek;
Current_Mode.My_Sobek_Type = My_Sobek_Type_Enum.Home;
Current_Mode.Redirect();
return;
}
// If this is a postback, handle any events first
if ((Current_Mode.isPostBack) && ( User.Is_System_Admin ))
{
// Pull the hidden value
string save_value = HttpContext.Current.Request.Form["admin_builder_tosave"].ToUpper().Trim();
if (save_value.Length > 0)
{
// Set this value
SobekCM_Database.Set_Setting("Builder Operation Flag", save_value);
Current_Mode.Redirect();
}
}
}
示例9: dLOC_Search_AggregationViewer
/// <summary> Constructor for a new instance of the dLOC_Search_AggregationViewer class </summary>
/// <param name="Current_Aggregation"> Current item aggregation object </param>
/// <param name="Current_Mode"> Mode / navigation information for the current request</param>
public dLOC_Search_AggregationViewer(Item_Aggregation Current_Aggregation, SobekCM_Navigation_Object Current_Mode)
: base(Current_Aggregation, Current_Mode)
{
textBoxValue = String.Empty;
if (currentMode.Search_String.Length > 0)
{
textBoxValue = currentMode.Search_String.Replace(",newspaper", "");
}
// Determine the complete script action name
Display_Mode_Enum displayMode = currentMode.Mode;
Aggregation_Type_Enum aggrType = currentMode.Aggregation_Type;
Search_Type_Enum searchType = currentMode.Search_Type;
currentMode.Mode = Display_Mode_Enum.Results;
currentMode.Search_Type = Search_Type_Enum.Full_Text;
string search_string = currentMode.Search_String;
currentMode.Search_String = String.Empty;
currentMode.Search_Fields = String.Empty;
arg2 = String.Empty;
currentMode.Search_Precision = Search_Precision_Type_Enum.Inflectional_Form;
arg1 = currentMode.Redirect_URL();
currentMode.Mode = Display_Mode_Enum.Aggregation;
currentMode.Aggregation_Type = Aggregation_Type_Enum.Browse_Info;
currentMode.Info_Browse_Mode = "all";
browse_url = currentMode.Redirect_URL();
scriptActionName = "dloc_search_sobekcm('" + arg1 + "', '" + browse_url + "');";
currentMode.Mode = displayMode;
currentMode.Aggregation_Type = aggrType;
currentMode.Search_Type = searchType;
currentMode.Search_String = search_string;
currentMode.Info_Browse_Mode = String.Empty;
}
示例10: Advanced_Search_AggregationViewer
/// <summary> Constructor for a new instance of the Advanced_Search_AggregationViewer class </summary>
/// <param name="Current_Aggregation"> Current item aggregation object </param>
/// <param name="Current_Mode"> Mode / navigation information for the current request</param>
public Advanced_Search_AggregationViewer(Item_Aggregation Current_Aggregation, SobekCM_Navigation_Object Current_Mode)
: base(Current_Aggregation, Current_Mode)
{
// Compute the redirect stem to use
string fields = currentMode.Search_Fields;
string searchCollections = currentMode.SubAggregation;
Display_Mode_Enum lastMode = currentMode.Mode;
currentMode.SubAggregation = String.Empty;
string searchString = currentMode.Search_String;
currentMode.Search_String = String.Empty;
currentMode.Search_Fields = String.Empty;
currentMode.Mode = Display_Mode_Enum.Results;
currentMode.Search_Precision = Search_Precision_Type_Enum.Inflectional_Form;
string redirectStem = currentMode.Redirect_URL();
currentMode.Search_String = searchString;
currentMode.Search_Fields = fields;
currentMode.SubAggregation = searchCollections;
currentMode.Mode = lastMode;
// If there are children under this hierarchy that can be selected
//script_action_name = "Javascript:advanced_select_search_sobekcm('" + redirect_stem + "', '" + sub_code + "')";
//script_include_name = "<script src=\"" + currentMode.Base_URL + "default/scripts/sobekcm_search.js\" type=\"text/javascript\"></script>";
scriptActionName = "Javascript:advanced_search_sobekcm('" + redirectStem + "')";
scriptIncludeName = "<script src=\"" + currentMode.Base_URL + "default/scripts/sobekcm_search.js\" type=\"text/javascript\"></script>";
}
示例11: TrackingSheet_ItemViewer
/// <summary> Constructor for the Tracking Sheet ItemViewer </summary>
/// <param name="Current_Object"></param>
/// <param name="Current_User"></param>
/// <param name="Current_Mode"></param>
public TrackingSheet_ItemViewer(SobekCM_Item Current_Object, User_Object Current_User, SobekCM_Navigation_Object Current_Mode)
{
CurrentMode = Current_Mode;
CurrentUser = Current_User;
//Assign the current resource object to track_item
track_item = Current_Object;
//Get the ItemID for this Item from the database
itemID = track_item.Web.ItemID;
//Get aggregation info
aggregations = track_item.Behaviors.Aggregation_Codes;
//If no aggregations present, display "none"
aggregations = aggregations.Length>0 ? aggregations.ToUpper() : "(none)";
aggregations = aggregations.Replace(";", "; ");
//Determine the OCLC & Aleph number for display
oclc = track_item.Bib_Info.OCLC_Record;
aleph = track_item.Bib_Info.ALEPH_Record;
if (String.IsNullOrEmpty(oclc) || oclc.Trim() == "0" || oclc.Trim() == "1")
oclc = "(none)";
if (String.IsNullOrEmpty(aleph) || aleph.Trim() == "0" || aleph.Trim() == "1")
aleph = "(none)";
//Determine the author(s) for display
authors_list = new List<string>();
int author_startCount = 0;
//Add the main entity first
if (track_item.Bib_Info.hasMainEntityName)
{
authors_list.Add(track_item.Bib_Info.Main_Entity_Name.Full_Name + track_item.Bib_Info.Main_Entity_Name.Role_String);
author_startCount++;
}
//Now add all other associated creators
for (int i = author_startCount; i < track_item.Bib_Info.Names_Count; i++)
{
//Skip any publishers in this list
if(track_item.Bib_Info.Names[i].Role_String.ToUpper().Contains("PUBLISHER"))
continue;
authors_list.Add(track_item.Bib_Info.Names[i].Full_Name + track_item.Bib_Info.Names[i].Role_String);
}
//Determine the publisher(s) for display
publishers_list=new string[track_item.Bib_Info.Publishers_Count];
for (int i = 0; i < track_item.Bib_Info.Publishers_Count; i++)
publishers_list[i] = track_item.Bib_Info.Publishers[i].Name;
//Create the temporary location for saving the barcode images
image_location = SobekCM_Library_Settings.Base_Temporary_Directory + "tsBarcodes\\" + itemID.ToString();
// Create the folder for the user in the temp directory
if (!Directory.Exists(image_location))
Directory.CreateDirectory(image_location);
}
示例12: User_Usage_Stats_MySobekViewer
/// <summary> Constructor for a new instance of the User_Tags_MySobekViewer class </summary>
/// <param name="User"> Authenticated user information </param>
/// <param name="Current_Mode"> Mode / navigation information for the current request</param>
/// <param name="Stats_Date_Range"> Object contains the start and end dates for the statistical data in the database </param>
/// <param name="Tracer">Trace object keeps a list of each method executed and important milestones in rendering</param>
public User_Usage_Stats_MySobekViewer(User_Object User, SobekCM_Navigation_Object Current_Mode, Statistics_Dates Stats_Date_Range, Custom_Tracer Tracer)
: base(User)
{
Tracer.Add_Trace("User_Usage_Stats_MySobekViewer.Constructor", String.Empty);
currentMode = Current_Mode;
statsDates = Stats_Date_Range;
}
示例13: Xml_MainWriter
/// <summary> Constructor for a new instance of the Xml_MainWriter class </summary>
/// <param name="Current_Mode"> Mode / navigation information for the current request</param>
/// <param name="Hierarchy_Object"> Current item aggregation object to display </param>
/// <param name="Results_Statistics"> Information about the entire set of results for a search or browse </param>
/// <param name="Paged_Results"> Single page of results for a search or browse, within the entire set </param>
/// <param name="Browse_Object"> Object contains all the basic information about any browse or info display </param>
/// <param name="Current_Item"> Current item to display </param>
/// <param name="Current_Page"> Current page within the item</param>
public Xml_MainWriter(SobekCM_Navigation_Object Current_Mode,
Item_Aggregation Hierarchy_Object,
Search_Results_Statistics Results_Statistics,
List<iSearch_Title_Result> Paged_Results,
Item_Aggregation_Browse_Info Browse_Object,
SobekCM_Item Current_Item,
Page_TreeNode Current_Page)
: base(Current_Mode, Hierarchy_Object, Results_Statistics, Paged_Results, Browse_Object, Current_Item, Current_Page, null)
{
}
示例14: Print_Item_HtmlSubwriter
/// <summary> Constructor for a new instancee of the Print_Item_HtmlSubwriter class </summary>
/// <param name="Current_Item">Current item to display </param>
/// <param name="Code_Manager"> List of valid collection codes, including mapping from the Sobek collections to Greenstone collections</param>
/// <param name="Translator"> Language support object which handles simple translational duties </param>
/// <param name="Current_Mode"> Mode / navigation information for the current request</param>
public Print_Item_HtmlSubwriter(SobekCM_Item Current_Item,
Aggregation_Code_Manager Code_Manager,
Language_Support_Info Translator,
SobekCM_Navigation_Object Current_Mode )
{
currentMode = Current_Mode;
currentItem = Current_Item;
codeManager = Code_Manager;
translations = Translator;
}
示例15: Home_AdminViewer
/// <summary> Constructor for a new instance of the Home_AdminViewer class </summary>
/// <param name="User"> Authenticated user information </param>
/// <param name="Current_Mode">Mode / navigation information for the current request</param>
/// <param name="Tracer">Trace object keeps a list of each method executed and important milestones in rendering</param>
public Home_AdminViewer(User_Object User, SobekCM_Navigation_Object Current_Mode, Custom_Tracer Tracer)
: base(User)
{
Tracer.Add_Trace("Home_AdminViewer.Constructor", String.Empty);
if ((User == null) || ((!User.Is_Portal_Admin) && (!User.Is_System_Admin)))
{
Current_Mode.My_Sobek_Type = My_Sobek_Type_Enum.Home;
HttpContext.Current.Response.Redirect(Current_Mode.Redirect_URL(), false);
}
}