//INSTANT C# WARNING: Strict 'Handles' conversion only applies to 'WithEvents' fields declared in the same class - the event will be wired in 'SubscribeToEvents':
//ORIGINAL LINE: Protected Sub btnSave_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSave.Click
    protected void btnSave_Click(object sender, System.EventArgs e)
    {
        if (b.DemoMode == false)
        {
            b.MetaDescription      = inDescription.Text;
            b.GuestbookGridSize    = Convert.ToInt16(inGridSize.Text);
            b.GuestBookTitle       = inGuestBookTitle.Text;
            b.MetaKeywords         = inKeywords.Text;
            b.SiteTitle            = inSiteTitle.Text;
            b.AdminEmail           = inAdminEmail.Text;
            b.MailServer           = inMailServer.Text;
            b.DemoMode             = chkDemoMode.Checked;
            b.ShowPoweredBy        = chkPoweredBy.Checked;
            b.RequireApproval      = chkRequireApproval.Checked;
            b.SendEmailWithNewPost = chkSendEmail.Checked;
            b.EnableErrorTracking  = chkTrackErrors.Checked;
            b.LanguageFilter       = rblFilter.SelectedValue;

            DataLayer.SQLDataProvider data = new DataLayer.SQLDataProvider();
            if (data.UpdatingSiteSettings(b) == true)
            {
                Cache["SiteSettings"] = b;
                lblMessage.Text       = "Your settings have been saved";
            }
            else
            {
                lblerror.Text = "An error occured while saving your settings";
            }
        }
        else
        {
            lblerror.Text = "You are not allowed to change these settings in demo mode.";
        }
    }
//INSTANT C# WARNING: Strict 'Handles' conversion only applies to 'WithEvents' fields declared in the same class - the event will be wired in 'SubscribeToEvents':
//ORIGINAL LINE: Protected Sub btnSave_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSave.Click
    protected void btnSave_Click(object sender, System.EventArgs e)
    {
        if (b.DemoMode == false)
        {
            SiteSettings ss = b;

            ss.RequireFullName  = chkFullName.Checked;
            ss.RequireCountry   = chkCountry.Checked;
            ss.RequireState     = chkState.Checked;
            ss.RequireEmail     = chkEmail.Checked;
            ss.RequireHomepage  = chkHomePage.Checked;
            ss.RequireGuestbook = chkGuestbook.Checked;
            ss.RequireGender    = chkGender.Checked;
            ss.RequireMessage   = chkMessage.Checked;

            ss.DisplayFullName  = chkDisplayFullName.Checked;
            ss.DisplayCountry   = chkDisplayCountry.Checked;
            ss.DisplayState     = chkDisplayState.Checked;
            ss.DisplayEmail     = chkDisplayEmail.Checked;
            ss.DisplayHomepage  = chkDisplayHomePage.Checked;
            ss.DisplayGuestbook = chkDisplayGuestbook.Checked;
            ss.DisplayGender    = chkDisplayGender.Checked;
            ss.DisplayMessage   = chkDisplayMessage.Checked;

            DataLayer.SQLDataProvider data = new DataLayer.SQLDataProvider();
            if (data.UpdatingSiteSettings(ss) == true)
            {
                lblMessage.Text = "Settings Saved";
            }
            else
            {
                lblerror.Text = "Error while saving settings";
            }
        }
        else
        {
            lblerror.Text = "You are not allowed to change these settings in demo mode.";
        }
    }