void ConnectClick(object Sender, RoutedEventArgs e) { SetPassword(); blogger = Utils.InitializeBlogger(ProviderInfo); IEnumerable <BlogInfo> blogs = blogger.GetUsersBlogs(); if (blogs == null) { return; } WebSites.Clear(); foreach (BlogInfo blog in blogs) { WebSites.Add(blog); } BlogsLoaded = true; }