void BlogSelectionChanged(object Sender, SelectionChangedEventArgs e) { if (blogger == null || ProviderInfo == null || ProviderInfo.Blog == null) { return; } blogger.SetBlog(ProviderInfo.Blog.blogid); }
public static Blogger InitializeBlogger(ProviderInformation provInfo) { if ( String.IsNullOrEmpty(provInfo.ProviderURL) || String.IsNullOrEmpty(provInfo.UserName) || provInfo.SecurePassword == null ) { return(null); } Blogger blogger = new Blogger(provInfo.ProviderURL, provInfo.UserName, provInfo.SecurePassword); if (provInfo.Blog != null && !String.IsNullOrEmpty(provInfo.Blog.blogid)) { blogger.SetBlog(provInfo.Blog.blogid); } return(blogger); }