本文整理汇总了C#中Currency.GetDefaultCurrency方法的典型用法代码示例。如果您正苦于以下问题:C# Currency.GetDefaultCurrency方法的具体用法?C# Currency.GetDefaultCurrency怎么用?C# Currency.GetDefaultCurrency使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Currency
的用法示例。
在下文中一共展示了Currency.GetDefaultCurrency方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Page_Load
protected override void Page_Load(System.Object sender, System.EventArgs e)
{
base.Page_Load(sender, e);
m_refCurrency = new Currency(m_refContentApi.RequestInformationRef);
defaultCurrency = m_refCurrency.GetDefaultCurrency();
if (! Ektron.Cms.DataIO.LicenseManager.LicenseManager.IsFeatureEnable(m_refContentApi.RequestInformationRef, Ektron.Cms.DataIO.LicenseManager.Feature.eCommerce))
{
Utilities.ShowError(m_refContentApi.EkMsgRef.GetMessage("feature locked error"));
}
RegisterResource();
AppPath = this.m_refContentApi.ApplicationPath;
if (Page.Request.QueryString["search"] != "")
{
searchCriteria = Page.Request.QueryString["search"];
}
try
{
if (!string.IsNullOrEmpty(Request.QueryString["currentpage"]))
{
_currentPageNumber = Convert.ToInt32(Request.QueryString["currentpage"]);
}
if (!string.IsNullOrEmpty(Request.QueryString["sortcriteria"]))
{
Util_FindSort(Request.QueryString["sortcriteria"]);
}
if (! Utilities.ValidateUserLogin())
{
return;
}
Util_CheckAccess();
Util_RegisterResources();
Util_SetServerJSVariables();
hdnCurrentPage.Value = CurrentPage.Text;
tr_addedit.Visible = false;
tr_viewall.Visible = false;
if (!(Page.IsPostBack))
{
switch (m_sPageAction)
{
case "exchangerate":
Display_ExchangeRate();
break;
case "goto":
Display_GoTo();
break;
case "edit":
Display_Edit();
break;
case "add":
Display_Add();
break;
case "delete":
Process_Delete();
break;
default:
if (Page.IsPostBack == false)
{
Display_ViewAll();
}
break;
}
}
else
{
switch (m_sPageAction)
{
case "exchangerate":
Process_ExchangeRate();
break;
case "edit":
Process_Edit();
break;
case "add":
Process_Add();
break;
case "delete":
Process_Delete();
break;
}
}
}
catch (Exception ex)
{
Utilities.ShowError(EkFunctions.UrlEncode(ex.Message));
}
}