示例#1
0
        public void LoadBrowsingList(string inputBrowsing)
        {
            var listOfUrl = inputBrowsing
                            .Split(new[] { ' ' })
                            .ToList();

            foreach (var phoneNumber in listOfUrl)
            {
                try
                {
                    var validUrl = new Browsing(phoneNumber);
                    Console.WriteLine(this.PrintBrowse(validUrl));
                }
                catch (Exception ex)
                {
                    Console.WriteLine(ex.Message);
                }
            }
        }
示例#2
0
        public void LoadBrowsingList(string inputBrowsing)
        {
            var listOfUrl = inputBrowsing
                            .Split(new[] { ' ' })
                            .ToList();

            foreach (var phoneNumber in listOfUrl)
            {
                //try
                //{
                var validUrl = new Browsing(phoneNumber);
                browsings.Add(validUrl);
                //Console.WriteLine(this.PrintBrowse(validUrl));
                //}
                //catch (Exception ex)
                //{
                //    Console.WriteLine(ex.Message);
                //}
            }
        }
示例#3
0
 public string PrintBrowse(Browsing newBrowse)
 {
     return(newBrowse.PrintBrowsing());
 }