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

BeginEditMode() private method

private BeginEditMode ( ) : void
return void
        private void BeginEditMode()
        {
            if (ViewState[CMSViewStateManager.SupplierID] != null)
            {
                Supplier Supplier =
                    SupplierManager.GetSupplier(Convert.ToInt32(ViewState[CMSViewStateManager.SupplierID]), CMSContext.PortalID, CMSContext.LanguageID);
                if (Supplier != null)
                {
                    pnlSupplierItem.Visible = true;
                    ucPortalLanguage.Visible = true;
                    ucPortalLanguage.SelectedLanguageID = Supplier.LanguageID;
                    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;
                    btnSaveOtherLanguage.Visible = false;
                    btnUpdate.Visible = true;

                }
            }
        }