예제 #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);
        }