AJH.CMS.WEB.UI.Admin.ManageSupplier_UC.BeginEditModeOtherLanguage C# (CSharp) Method

BeginEditModeOtherLanguage() private method

private BeginEditModeOtherLanguage ( ) : void
return void
        private void BeginEditModeOtherLanguage()
        {
            Supplier Supplier =
                SupplierManager.GetSupplier(Convert.ToInt32(ViewState[CMSViewStateManager.SupplierID]), CMSContext.PortalID, ucPortalLanguage.SelectedLanguageID);
            if (Supplier != null)
            {
                pnlSupplierItem.Visible = true;
                ucPortalLanguage.Visible = true;
                txtName.Text = Supplier.Name;
                cbIsEnabled.Checked = Supplier.IsEnabled;
                ucSWFUpload.BeginEditMode(Supplier.LogoImage);

                cddlParentSupplier.Category = Supplier.ID.ToString();
                if (Supplier.ParentSupplierID > 0)
                    cddlParentSupplier.SelectedValue = Supplier.ParentSupplierID.ToString();

                txtDescription.Text = Supplier.Description;
                txtMetaTitle.Text = Supplier.MetaTitle;
                txtMetaDescription.Text = Supplier.MetaDescription;
                txtMetaKeywords.Text = Supplier.MetaKeywords;

                btnSave.Visible = false;
                if (string.IsNullOrEmpty(Supplier.Name))
                {
                    btnSaveOtherLanguage.Visible = true;
                    btnUpdate.Visible = false;
                }
                else
                {
                    btnSaveOtherLanguage.Visible = false;
                    btnUpdate.Visible = true;
                }
            }
        }