private IEnumerable <string> GetSubSiteUrls(string url)
 {
     foreach (SPWeb web in _utility.GetSharePointObjects(url, false, false, true, false, false, string.Empty))
     {
         yield return(web.Url);
     }
 }
示例#2
0
        private void ExecuteButton_Click(object sender, EventArgs e)
        {
            SquadronHelper.Instance.StartAnimation();

            try
            {
                var list = _utility.GetSharePointObjects(SquadronContext.Url, false, SiteCollectionCheck.Checked, SiteCheck.Checked, ListCheck.Checked, false, string.Empty);

                if (FilterCheck.Checked)
                {
                    list = list.Where(o => _utility.GetUrl(o).ToLower().StartsWith(FilterText.Text.ToLower())).ToList();
                }

                _result = _sizeUtility.GetSize(list);

                SetBoldNItalic();
                SetFormatting();
            }
            finally
            {
                SquadronHelper.Instance.StopAnimation();
            }
        }