Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                WBFarm farm = WBFarm.Local;

                SPSite site = SPContext.Current.Site;

                RecordsLibraryToUse.DataSource = WBFWebPartsUtils.GetRecordsLibraryOptions();
                RecordsLibraryToUse.DataBind();
                RecordsLibraryToUse.WBxSafeSetSelectedValue(WBFWebPartsUtils.GetRecordsLibraryToUse(site));
                LocalPublicLibraryURL.Text = WBFWebPartsUtils.GetLocalPublicLibraryURL(site);

                UseExtranetLibrary.Checked   = WBFWebPartsUtils.UseExtranetLibrary(site);
                LocalExtranetLibraryURL.Text = WBFWebPartsUtils.GetLocalExtranetLibraryURL(site);

                ShowFileIcons.Checked   = WBFWebPartsUtils.ShowFileIcons(site);
                ShowKBFileSize.Checked  = WBFWebPartsUtils.ShowKBFileSize(site);
                ShowDescription.Checked = WBFWebPartsUtils.ShowDescription(site);
            }
        }