private void BeginEditModeOtherLanguage()
{
Catalog catalog =
CatalogManager.GetCatalog(Convert.ToInt32(ViewState[CMSViewStateManager.CatalogID]), ucPortalLanguage.SelectedLanguageID);
if (catalog != null)
{
pnlCatalogItem.Visible = true;
ucPortalLanguage.Visible = true;
txtName.Text = catalog.Name;
cbIsDisplayed.Checked = catalog.IsDisplayed;
cbIsGalleryOnly.Checked = catalog.IsGalleryOnly;
catalog.IsPublished = cbIsPublishedOnslider.Checked;
cddlParentCatalog.Category = catalog.ID.ToString();
if (catalog.ParentCalalogID > 0)
cddlParentCatalog.SelectedValue = catalog.ParentCalalogID.ToString();
txtDescription.Text = catalog.Description;
txtMetaTitle.Text = catalog.MetaTitle;
txtMetaDescription.Text = catalog.MetaDescription;
txtMetaKeywords.Text = catalog.MetaKeywords;
txtCatalogOrder.Text = catalog.Order.ToString();
btnSave.Visible = false;
if (string.IsNullOrEmpty(catalog.Name))
{
btnSaveOtherLanguage.Visible = true;
btnUpdate.Visible = false;
}
else
{
btnSaveOtherLanguage.Visible = false;
btnUpdate.Visible = true;
}
FillAllProducts(catalog.ID, ucPortalLanguage.SelectedLanguageID);
FillCatalogProducts(catalog.ID, ucPortalLanguage.SelectedLanguageID);
upnlProductCatalog.Update();
}
}
#endregion