AJH.CMS.WEB.UI.Admin.ManageCatalog_UC.BeginAddMode C# (CSharp) Method

BeginAddMode() private method

private BeginAddMode ( ) : void
return void
        void BeginAddMode()
        {
            BeginCatalogImageAddMode();
            dlsCatalogImage.DataSource = new List<CatalogImage>();
            dlsCatalogImage.DataBind();

            ucPortalLanguage.SelectedLanguageID = -1;
            ViewState.Remove(CMSViewStateManager.CatalogID);
            pnlCatalogItem.Visible = true;


            txtDescription.Text = string.Empty;
            txtName.Text = string.Empty;
            txtMetaDescription.Text = string.Empty;
            txtMetaKeywords.Text = string.Empty;
            txtMetaTitle.Text = string.Empty;
            cbIsGalleryOnly.Checked = false;
            cbIsPublishedOnslider.Checked = false;
            cbIsDisplayed.Checked = false;

            txtCatalogOrder.Text = "0";

            cddlParentCatalog.SelectedValue = "0";

            ucPortalLanguage.Visible = false;
            ucPortalLanguage.SelectedLanguageID = -1;

            btnSave.Visible = true;
            btnUpdate.Visible = false;
            btnSaveOtherLanguage.Visible = false;

            pnlCatalogItem.Visible = true;
            pnlCatalogItem.DefaultButton = btnSave.ID;
        }
        #endregion