本文整理汇总了C#中System.Collections.Hashtable.GetInteger方法的典型用法代码示例。如果您正苦于以下问题:C# Hashtable.GetInteger方法的具体用法?C# Hashtable.GetInteger怎么用?C# Hashtable.GetInteger使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Collections.Hashtable
的用法示例。
在下文中一共展示了Hashtable.GetInteger方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Settings
public Settings(int moduleId, int tabModuleId)
{
_moduleId = moduleId;
_tabModuleId = tabModuleId;
var mc = new ModuleController();
ModuleSettings = mc.GetModuleSettings(_moduleId);
TabModuleSettings = mc.GetTabModuleSettings(_tabModuleId);
History = TabModuleSettings.GetInteger(SettingName.History, _History);
DescriptionLength = TabModuleSettings.GetInteger(SettingName.DescriptionLength, _DescriptionLength);
EditorHeight = TabModuleSettings.GetInteger(SettingName.EditorHeight, _EditorHeight);
RepeatTemplate = TabModuleSettings.GetInteger(SettingName.RepeatTemplate, _defaultRepeatTemplate);
DefaultViewType = Utilities.StringToViewType(TabModuleSettings.GetString(SettingName.DefaultViewType, _DefaultViewType));
TemplateType = TabModuleSettings.GetString(SettingName.TemplateType, _TemplateType);
TemplateName = TabModuleSettings.GetString(SettingName.TemplateName, _TemplateName);
TemplateLocation = TabModuleSettings.GetString(SettingName.TemplateLocation, _TemplateLocation);
//legacy
ItemTemplate = TabModuleSettings.GetString(SettingName.ItemTemplate, Null.NullString);
AltItemTemplate = TabModuleSettings.GetString(SettingName.AltItemTemplate, Null.NullString);
Separator = TabModuleSettings.GetString(SettingName.HeaderTemplate, Null.NullString);
HeaderTemplate = TabModuleSettings.GetString(SettingName.HeaderTemplate, Null.NullString);
FooterTemplate = TabModuleSettings.GetString(SettingName.FooterTemplate, Null.NullString);
RepeatTemplate = TabModuleSettings.GetInteger(SettingName.FooterTemplate, 0);
Legacy = ModuleSettings.GetBoolean(SettingName.Legacy, _Legacy) || !Legacy && !string.IsNullOrEmpty(ItemTemplate);
}