コード例 #1
0
        public void AddNewUrl(string url)
        {
            var index = SharePointWebUrlHistory.IndexOf(url);

            if (index >= 0)
            {
                SharePointWebUrlHistory.RemoveAt(index);
            }
            SharePointWebUrlHistory.Insert(0, url);
        }
コード例 #2
0
        public void AddNewUrl(string url)
        {
            if (string.IsNullOrEmpty(url))
            {
                return;
            }

            var index = SharePointWebUrlHistory.IndexOf(url);

            if (index >= 0)
            {
                SharePointWebUrlHistory.RemoveAt(index);
            }
            SharePointWebUrlHistory.Insert(0, url);
        }