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

BeginEditMode() private method

private BeginEditMode ( ) : void
return void
        private void BeginEditMode()
        {
            if (ViewState[CMSViewStateManager.TaxID] != null)
            {
                Tax Tax =
                    TaxManager.GetTax(Convert.ToInt32(ViewState[CMSViewStateManager.TaxID]), CMSContext.PortalID);

                if (Tax != null)
                {
                    pnlTaxItem.Visible = true;
                    txtRate.Text = Tax.Rate.ToString();
                    cbIsEnabled.Checked = Tax.IsEnabled;

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