private void PopulateControls() { if (!MainContext.IsPostBack) { RefreshGrid(); } if (uxGridProduct.Rows.Count > 0) { DeleteVisible(true); uxPagingControl.Visible = true; } else { DeleteVisible(false); uxPagingControl.Visible = false; } if (!IsAdminModifiable()) { uxAddButton.Visible = false; uxeBayListing.Visible = false; DeleteVisible(false); } uxSortButton.Visible = IsAdminViewable(_sortPage); if (!KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)) { uxeBayListing.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { uxLanguageControl.BubbleEvent += new EventHandler(Details_RefreshHandler); if (!MainContext.IsPostBack) { uxUpload.PathDestination = _pathNews; uxUpload.ReturnTextControlClientID = uxFileImageText.ClientID; InsertStoreInDropDownList(); } if (AdminConfig.CurrentTestMode == AdminConfig.TestMode.Normal) { uxDateText.Visible = false; } else { uxDateText.Visible = true; } if (!KeyUtilities.IsMultistoreLicense()) { uxStorePanel.Visible = false; } }
private void PopulateControl() { uxRootCategoryDrop.Items.Clear(); IList <Category> rootCategoryList = DataAccessContext.CategoryRepository.GetRootCategory(uxLanguageControl.CurrentCulture, "CategoryID", BoolFilter.ShowAll); foreach (Category rootCategory in rootCategoryList) { uxRootCategoryDrop.Items.Add(new ListItem(rootCategory.Name, rootCategory.CategoryID)); } uxCategoryDrop.Items.Clear(); uxCategoryDrop.Items.Add(new ListItem("Root", uxRootCategoryDrop.SelectedValue, true)); IList <Category> categoryList = DataAccessContext.CategoryRepository.GetByRootIDNotLeaf( uxLanguageControl.CurrentCulture, uxRootCategoryDrop.SelectedValue, "SortOrder", BoolFilter.ShowAll); for (int i = 0; i < categoryList.Count; i++) { uxCategoryDrop.Items.Add(new ListItem( categoryList[i].CreateFullCategoryPath() + " (" + categoryList[i].CategoryID + ")", categoryList[i].CategoryID)); } if (!KeyUtilities.IsMultistoreLicense()) { uxRootCategoryFilterPanel.Visible = false; } PopulateListControls("SortOrder"); }
protected void Page_Load(object sender, EventArgs e) { if (!MainContext.IsPostBack) { SetupDisplayBox(); } if (KeyUtilities.IsMultistoreLicense()) { uxStoreViewLabel.Visible = true; uxStoreList.Visible = true; } uxWarningPanel.Style["display"] = "none"; VulnerableFiles vulnerable = new VulnerableFiles(); if (vulnerable.Existed) { uxSecurityWarningLink.Visible = true; uxSecurityWarningLink.Attributes.Add("onclick", String.Format("$('#{0}').toggle('slow'); return false;", uxWarningPanel.ClientID)); RecoveryPageValid(); uxMessageLabel.Text = message;//document.getElementById('{0}').className='mgl30p'; } uxTabContainerReport.ActiveTabIndex = 0; uxTabularView.StoreID = StoreID; uxGraphicView.StoreID = StoreID; RefreshGrid(); }
protected void Page_Load(object sender, EventArgs e) { if ((KeyUtilities.Verify(NamedConfig.DomainRegistrationKey) || KeyUtilities.VerifyLicenseFile(Server.MapPath(SystemConst.LicenseFilePath))) && (KeyUtilities.VerifyLinkRemoval(NamedConfig.DomainRegistrationKey))) { Response.Redirect("Default.aspx"); } else { if (!KeyUtilities.VerifyLinkRemoval(NamedConfig.DomainRegistrationKey)) { uxDomainKeyPlaceHolder.Visible = false; uxLicensePlaceHolder.Visible = false; uxLinkRemovalKeyPlaceHolder.Visible = true; } else if (KeyUtilities.IsServerLicense()) { uxDomainKeyPlaceHolder.Visible = false; uxLicensePlaceHolder.Visible = true; uxLinkRemovalKeyPlaceHolder.Visible = false; } else { uxDomainKeyPlaceHolder.Visible = true; uxLicensePlaceHolder.Visible = false; uxLinkRemovalKeyPlaceHolder.Visible = false; } IFileManager fileManager = new FileManager(); string path = fileManager.GetFullPath("~/Bin/VevoLib.dll"); Assembly assembly = Assembly.LoadFrom(path); Version ver = assembly.GetName().Version; uxVersion.Text = SystemConst.CurrentVevoCartVersionNumber() + "<br/> Assembly version: " + ver.ToString(); } }
protected void uxUpdateButton_Click(object sender, EventArgs e) { try { if (Page.IsValid) { if (uxMultiStoreList.ConvertToStoreIDs().Length > 0 || !KeyUtilities.IsMultistoreLicense()) { Blog blog = DataAccessContext.BlogRepository.GetOne(CurrentID); blog = SetUpBlog(blog); blog = DataAccessContext.BlogRepository.Save(blog); uxMessage.DisplayMessage(Resources.BlogMessage.UpdateSuccess); PopulateControls(); } else { uxMessage.DisplayError(Resources.BlogMessage.ErrorStoreEmpty); return; } } } catch (Exception ex) { uxMessage.DisplayException(ex); } }
protected void Page_Load(object sender, EventArgs e) { if (KeyUtilities.IsTrialLicense()) { uxTrialWarningPlaceHolder.Visible = true; } else { uxTrialWarningPlaceHolder.Visible = false; } if (DataAccessContext.Configurations.GetBoolValue("RestrictAccessToShop")) { if (!Page.User.Identity.IsAuthenticated) { MainDivCenter.Style.Add("margin", "auto"); MainDivCenter.Style.Add("float", "none"); if (IsRestrictedAccessPage()) { FormsAuthentication.RedirectToLoginPage(); } } } if (DataAccessContext.Configurations.GetBoolValue("PriceRequireLogin")) { if (!Page.User.Identity.IsAuthenticated) { uxPriceRequireLoginPanel.Visible = true; } } AffiliateHelper.SetAffiliateCookie(AffiliateCode); }
protected void uxGridNewsletter_RowUpdating(object sender, GridViewUpdateEventArgs e) { try { string email = ((TextBox)uxGridNewsletter.Rows[e.RowIndex].FindControl("uxEmailText")).Text; string storeID; if (KeyUtilities.IsMultistoreLicense()) { storeID = ((Admin_Components_StoreDropDownList)uxGridNewsletter.Rows[e.RowIndex].FindControl("uxStoreList")).CurrentSelected; } else { storeID = Store.RegularStoreID; } RegisterEmailUpdate(email, EmailOld, storeID, StoreIDOld); CancelGrid(); } catch (Exception ex) { if (ex.InnerException is DuplicatedPrimaryKeyException) { uxMessage.DisplayError(Resources.NewsletterManager.UpdateErrorDuplicated); } else { uxMessage.DisplayException(ex); } } finally { // Avoid calling Update() automatically by GridView CancelGrid(); } }
protected void Page_Load(object sender, EventArgs e) { if (!KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)) { this.Visible = false; return; } if (AdminConfig.CurrentTestMode == AdminConfig.TestMode.Test) { uxEventDateCalendarPopup.SelectedDate = DateTime.Today.AddMonths(1); } if (IsEditMode()) { if (!IsPostBack) { ShowHideShippingResidential(); PopulateControls(); uxAddLinkButton.Visible = false; uxEditLinkButton.Visible = true; } } else { if (!IsPostBack) { PopulateUserAddress(); uxHideEventCheck.Checked = true; uxNotifyNewOrderCheck.Checked = true; } uxAddLinkButton.Visible = true; uxEditLinkButton.Visible = false; } }
private void PopulateControl() { uxPromotionGroupDrop.Items.Clear(); IList <PromotionGroup> promotionGroupList = DataAccessContextDeluxe.PromotionGroupRepository.GetAllWithoutSubGroup( uxLanguageControl.CurrentCulture, ""); foreach (PromotionGroup promotionGroup in promotionGroupList) { uxPromotionGroupDrop.Items.Add(new ListItem(promotionGroup.Name, promotionGroup.PromotionGroupID)); } uxPromotionSubGroupDrop.Items.Clear(); IList <PromotionGroupSubGroup> promotionGroupSubGroupList = DataAccessContextDeluxe.PromotionGroupRepository.GetPromotionGroupSubGroup( uxPromotionGroupDrop.SelectedValue, "SortOrder"); for (int i = 0; i < promotionGroupSubGroupList.Count; i++) { ListItem listItem = new ListItem( DataAccessContextDeluxe.PromotionSubGroupRepository.GetOne(promotionGroupSubGroupList[i].PromotionSubGroupID).Name + " (" + promotionGroupSubGroupList[i].PromotionSubGroupID + ")", promotionGroupSubGroupList[i].PromotionSubGroupID); uxPromotionSubGroupDrop.Items.Add(listItem); } if (!KeyUtilities.IsMultistoreLicense()) { uxPromotionGroupFilterPanel.Visible = false; } PopulateListControls("SortOrder"); }
private void PopulateControls() { if (!MainContext.IsPostBack) { RefreshGrid(); } if (uxGridCustomer.Rows.Count > 0) { DeleteVisible(true); uxPagingControl.Visible = true; } else { DeleteVisible(false); uxPagingControl.Visible = false; } if (!IsAdminModifiable()) { uxAddButton.Visible = false; DeleteVisible(false); } if (!KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)) { uxGridCustomer.Columns[7].Visible = false; uxGridCustomer.Columns[8].Visible = false; } }
public async Task <IActionResult> SearchBans(string key) { var ckey = KeyUtilities.GetCanonicalKey(key); if (string.IsNullOrWhiteSpace(ckey) || ckey.Length < 3) { return(View("badsearch", new BanSearchViewModel() { CKey = ckey })); } var searchResults = await _banService.SearchSummariesForKeyAsync(key); // If there is only one result, just view it if (searchResults.Count() == 1) { return(RedirectToAction("ViewBans", new { key = searchResults.First().CKey })); } return(View(new BanSearchViewModel() { CKey = ckey, Data = searchResults })); }
private void PopulateAddToGiftRegistryButton() { MembershipUser user = Membership.GetUser(); if (!StoreContext.CheckoutDetails.ContainsGiftRegistry() && user != null && DataAccessContext.Configurations.GetBoolValue("GiftRegistryModuleDisplay") && KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName) ) { if (Roles.GetRolesForUser(user.UserName)[0].ToLower() == "customers" && HasGiftRegistryByUser(user.UserName)) { uxAddToGiftRegistryImageButton.Visible = true; } else { uxAddToGiftRegistryImageButton.Visible = false; } } else { uxAddToGiftRegistryImageButton.Visible = false; } }
public static RunItem ComputeRunStats(this RunItem runItem) { try { Trace.WriteLine("Start ComputeRunStats : RunItem " + runItem.KeyId); // Load the base64 keys String galKeyString = "", galSingleStepKeyString = "", relinKeyString = ""; KeyUtilities.GetKeys(runItem.KeyId, ref galKeyString, ref galSingleStepKeyString, ref relinKeyString); // Calculate the cipher results SEALWrapper sw = new SEALWrapper(4096); sw.LoadKeys(galKeyString, galSingleStepKeyString, relinKeyString); sw.ComputeStatsCiphers(runItem.Cipher1, runItem.Cipher2, runItem.Summary, runItem.CipherGyro); runItem.Stats = sw.getStats(); runItem.Summary = sw.getSummary(); runItem.CipherGyro = sw.getMlResults(); Trace.WriteLine("End ComputeRunStats : RunItem " + runItem.KeyId); } catch (Exception e) { Trace.TraceError("{%s} occurred while computing stats {RunItem : %d}", runItem.KeyId, e); } return(runItem); }
private Blog SetUpBlog(Blog blog) { blog.BlogTitle = uxBlogTitleText.Text; blog.ShortContent = uxShortContentText.Text; blog.BlogContent = uxBlogContentText.Text; blog.MetaTitle = uxBlogMetaTitleText.Text; blog.MetaKeyword = uxBlogMetaKeywordText.Text; blog.MetaDescription = uxBlogMetaDescriptionText.Text; blog.Tags = UpdateTag(uxBlogTagsText.Text.Trim()); blog.IsEnabled = uxIsEnabledCheck.Checked; blog.CreateDate = uxCreateDateCalendarPopup.SelectedDate; blog.ImageFile = uxImageText.Text; if (KeyUtilities.IsMultistoreLicense()) { blog.StoreIDs = uxMultiStoreList.ConvertToStoreIDs(); } else { blog.StoreIDs.Clear(); blog.StoreIDs.Add(new StoreRetriever().GetCurrentStoreID()); } blog.BlogCategoryIDs = uxBlogCategoryList.ConvertToBlogCategoryIDs(); return(blog); }
// DELETE tables/KeyItem/48D68C86-6EA6-4C25-AA33-223FC9A27959 public Task DeleteKeyItem(string id) { ValidateKey(id); KeyUtilities.DeleteLocalCache(id); KeyUtilities.DeleteBlobContainer(id); return(DeleteAsync(id)); }
protected void uxAddButton_Click(object sender, EventArgs e) { try { if (Page.IsValid) { if (uxMultiStoreList.ConvertToStoreIDs().Length > 0 || !KeyUtilities.IsMultistoreLicense()) { Blog blog = new Blog(); blog.Publisher = Membership.GetUser().UserName; blog = SetUpBlog(blog); blog = DataAccessContext.BlogRepository.Save(blog); uxMessage.DisplayMessage(Resources.BlogMessage.AddSuccess); ClearInputField(); } else { uxMessage.DisplayError(Resources.BlogMessage.ErrorStoreEmpty); return; } } } catch (Exception ex) { uxMessage.DisplayException(ex); } }
private void PopulateControls() { uxTaxConfig.PopulateControls(); uxProductImageSizeConfig.PopulateControls(); uxDisplay.PopulateControls(); uxRatingReview.PopulateControls(); uxGiftCertificate.PopulateControls(); uxWholesale.PopulateControls(); uxEmailNotification.PopulateControls(); uxUploadConfig.PopulateControls(); uxSeo.PopulateControls(); uxSystemConfig.PopulateControls(); uxAffiliateConfig.PopulateControls(); uxShippingTracking.PopulateControls(); uxDownloadCount.PopulateControls(); /*-------- Original Code -------------*/ PopulateStoreConfig(); PopulateCustomTimeZone(); PopulateWebServiceConfig(); if (!KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)) { uxAffiliateTab.Visible = false; uxeBayConfigTab.Visible = false; uxWebServiceSettingLabel.Visible = false; uxWebServiceSettingTR.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { if (!KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)) { MainContext.RedirectMainControl("Default.ascx", String.Empty); } }
protected void Page_Load(object sender, EventArgs e) { RegisterJavaScript(); uxNewsMenu.Visible = DataAccessContext.Configurations.GetBoolValue("NewsModuleDisplay"); uxBlogMenu.Visible = DataAccessContext.Configurations.GetBoolValue("BlogEnabled"); uxAffiliateMenu.Visible = DataAccessContext.Configurations.GetBoolValue("AffiliateEnabled") && (KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)); uxSitemapMenu.Visible = DataAccessContext.Configurations.GetBoolValue("SiteMapEnabled"); uxWishListMenu.Visible = DataAccessContext.Configurations.GetBoolValue("WishListEnabled"); uxGiftCertificateMenu.Visible = DataAccessContext.Configurations.GetBoolValue("GiftCertificateEnabled"); uxRewardPointMenu.Visible = DataAccessContext.Configurations.GetBoolValue("PointSystemEnabled") && (KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)); uxComparisonMenu.Visible = DataAccessContext.Configurations.GetBoolValue("CompareListEnabled"); uxRmaMenu.Visible = DataAccessContext.Configurations.GetBoolValue("EnableRMA"); uxSubscription.Visible = KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName); uxAboutUsMenu.Visible = IsContentMenuEnable(GetLanguageText("AboutUs").Replace(" ", "")); uxFaqsMenu.Visible = IsContentMenuEnable(GetLanguageText("Faqs").Replace(" ", "")); uxPolicyMenu.Visible = IsContentMenuEnable(GetLanguageText("Policies").Replace(" ", "")); uxBlogShareLink.Visible = DataAccessContext.Configurations.GetBoolValue("BlogEnabled"); uxGoogleLink.NavigateUrl = "https://plus.google.com/share?url=" + UrlPath.StorefrontUrl; if (!String.IsNullOrEmpty(GetFanpageURL())) { uxFacebookLink.NavigateUrl = GetFanpageURL(); uxFacebookLink.Visible = true; } BlogCategory blogCategoryNews = DataAccessContext.BlogCategoryRepository.GetOne(StoreContext.Culture, _blogCategoryNewsID); uxNewsLink.NavigateUrl = UrlManager.GetBlogCategoryUrl(blogCategoryNews.UrlName); }
private void PopulateControls() { PopulateLanguageSection(); if (ConvertUtilities.ToInt32(CurrentID) > 0) { Product product = DataAccessContext.ProductRepository.GetOne(uxLanguageControl.CurrentCulture, CurrentID, new StoreRetriever().GetCurrentStoreID()); uxProductAttributes.PopulateControls(product, "0"); uxGiftCertificate.PopulateControls(product); if (product.IsGiftCertificate) { uxGiftCertificate.PopulateGiftData((GiftCertificateProduct)product); uxGiftCertificate.SetGiftCertificateControlsVisibility(IsEditMode()); } uxRecurring.PopulateControls(product); if (KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)) { uxProductSubscription.PopulateControls(product); } uxProductAttributes.IsFixPrice( uxGiftCertificate.IsFixedPrice, uxGiftCertificate.IsGiftCertificate, uxRecurring.IsRecurring, uxProductAttributes.IsCallForPrice); uxProductKit.PopulateControls(product); } }
protected override void OnMouseUp() { if (!KeyUtilities.DetectIfOnGift(this) && !transform.parent.GetComponent <Puzzle>().IsComplete()) { base.OnMouseUp(); } }
protected void PopulateStoreList() { IList <Store> storeList = DataAccessContext.StoreRepository.GetAll("StoreID"); uxStoreGrid.DataSource = storeList; uxStoreGrid.DataBind(); if (!KeyUtilities.IsMultistoreLicense()) { uxStoreListDiv.Visible = false; } IList <PaymentOptionStore> poStoreList = DataAccessContext.PaymentOptionRepository.GetAllPaymentOptionStoreByName(PaymentName); if (poStoreList == null) { return; } foreach (PaymentOptionStore poStore in poStoreList) { for (int i = 0; i < uxStoreGrid.Rows.Count; i++) { string rowStoreID = uxStoreGrid.DataKeys[i].Value.ToString(); GridViewRow row = uxStoreGrid.Rows[i]; CheckBox checkbox = GetUseOptionCheck(row); if (poStore.StoreID == rowStoreID) { checkbox.Checked = poStore.IsEnabled; } } } }
static void Main(string[] args) { CspProviderFlags flag = CspProviderFlags.UseMachineKeyStore; if (args.Length >= 1) { if (args[0].EndsWith(".pfx", StringComparison.OrdinalIgnoreCase) == true) { Console.WriteLine(GetKeyContainerName(args[0])); return; } flag = (CspProviderFlags)Enum.Parse(typeof(CspProviderFlags), args[0]); } foreach (var kc in KeyUtilities.EnumerateKeyContainers("Microsoft Strong Cryptographic Provider")) { CspParameters cspParams = new CspParameters(); cspParams.KeyContainerName = kc; cspParams.Flags = flag; using (RSACryptoServiceProvider prov = new RSACryptoServiceProvider(cspParams)) { if (prov.CspKeyContainerInfo.Exportable) { var blob = prov.ExportCspBlob(true); StrongNameKeyPair kp = new StrongNameKeyPair(prov.ExportCspBlob(false)); Console.WriteLine(kc + " pk length:" + kp.PublicKey.Length); } } Console.WriteLine(); } }
public virtual void CollectUnusedDetachables() { for (int i = 0; i < board.GetLength(0); i++) { for (int j = 0; j < board.GetLength(1); j++) { if (board[i, j].gameObject.tag == "DetachableKey" && !board[i, j].IsPressed()) { int firstBlank = PlayerInventory.FindFirstBlank(); if (firstBlank > -1) { GameObject original = board[i, j].gameObject; GameObject clone = Object.Instantiate(this.detachableKey, this.transform); DetachableKey cloneKey = clone.GetComponent <DetachableKey>(); clone.transform.localPosition = original.transform.localPosition; cloneKey.SetValue(board[i, j].GetValue()); BlankKey blankOriginal = KeyUtilities.ConvertKey <DetachableKey, BlankKey>( ref original, ColorUtilities.BLANK, "BlankKey" ); ResetBoardAt(blankOriginal.GetRow(), blankOriginal.GetCol(), blankOriginal); Key k = PlayerInventory.GetPuzzle().GetKeyAt(firstBlank); cloneKey.AutoPickUp(k.transform.position); return; } } } } LockPuzzle(); }
private void PopulateControls() { uxCurrencySelector.RefreshDropDownList(); IList <PaymentOption> sourcePayments = DataAccessContext.PaymentOptionRepository.GetShownPaymentList( AdminUtilities.CurrentCulture, BoolFilter.ShowAll); if (DataAccessContext.Configurations.GetBoolValue("VevoPayPADSSMode") && KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)) { uxPaymentListGrid.DataSource = sourcePayments; } else { IList <PaymentOption> integratedPayments = new List <PaymentOption>(); foreach (PaymentOption payment in sourcePayments) { if (!string.IsNullOrEmpty(payment.IntegratedProviderClassName) || (payment.Name == "Custom") || (payment.Name == "Bank Transfer") || (payment.Name == "No Payment") || (payment.Name == "Purchase Order")) { integratedPayments.Add(payment); } } uxPaymentListGrid.DataSource = integratedPayments; } uxPaymentListGrid.DataBind(); uxButtonListGrid.DataSource = DataAccessContext.PaymentOptionRepository.GetButtonList( AdminUtilities.CurrentCulture, BoolFilter.ShowAll); uxButtonListGrid.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { if (!KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)) { ThubLogEnabledTR.Visible = false; } }
private void SetUpRootDepartmentDropDown() { uxRootDepartmentDrop.Items.Clear(); Culture culture = DataAccessContext.CultureRepository.GetOne(LanguageID); IList <Department> rootDepartmentList = DataAccessContext.DepartmentRepository.GetRootDepartment(culture, "DepartmentID", BoolFilter.ShowAll); if (rootDepartmentList.Count > 0) { foreach (Department rootDepartment in rootDepartmentList) { uxRootDepartmentDrop.Items.Add(new ListItem(rootDepartment.Name, rootDepartment.DepartmentID)); } uxRootDepartmentDrop.SelectedValue = DataAccessContext.Configurations.GetValueNoThrow("RootDepartment", CurrentStore); } else { if (KeyUtilities.IsMultistoreLicense()) { uxRootDepartmentDrop.Items.Add(new ListItem("None", "0")); } else { uxRootDepartmentDrop.Items.Add(new ListItem("None", "1")); } uxRootDepartmentDrop.Enabled = false; } }
public void Destroy_Success() { var testKey = OtpCalculationTests.RfcTestKey; KeyUtilities.Destroy(testKey); CollectionAssert.AreNotEqual(OtpCalculationTests.RfcTestKey, testKey); }
protected void Page_Load(object sender, EventArgs e) { uxLanguageControl.BubbleEvent += new EventHandler(Language_RefreshHandler); uxProductInfo.CurrentCulture = uxLanguageControl.CurrentCulture; uxDepartmentInfo.CurrentCulture = uxLanguageControl.CurrentCulture; uxProductSeo.CurrentCulture = uxLanguageControl.CurrentCulture; uxProductSeo.StoreID = uxStoreList.CurrentSelected; uxProductAttributes.CurrentCulture = uxLanguageControl.CurrentCulture; uxProductAttributes.SetEditMode(IsEditMode()); uxProductAttributes.PopulateShippingCostControl(); uxProductAttributes.PopulateSpecificationItemControls(); if (!MainContext.IsPostBack) { if (!KeyUtilities.IsMultistoreLicense()) { uxStoreList.Visible = false; uxStoreViewLabel.Visible = false; } uxProductAttributes.InitTaxClassDrop(); uxProductAttributes.InitDiscountDrop(); PopulateLink(); uxProductAttributes.PopulateDropdown(); uxProductSubscription.InitDropDown(); } uxTabContainer.ActiveTabIndex = TabId; }