public void Initialize(Control synchronizeInvokeControl, BlogPostEditingManager editingManager) { // initialize notification sink _notificationSink = new BlogProviderButtonNotificationSink(synchronizeInvokeControl); _notificationSink.BlogProviderButtonNotificationReceived += new BlogProviderButtonNotificationReceivedHandler(_notificationSink_BlogProviderButtonNotificationReceived); _notificationSink.CheckForNotifications(); // save a reference to the editing manager and subscribe to change notifications _editingManager = editingManager; _editingManager.BlogChanged += new EventHandler(_editingManager_BlogChanged); _editingManager.BlogSettingsChanged += new WeblogSettingsChangedHandler(_editingManager_BlogSettingsChanged); // connect to the current weblog if (editingManager.BlogId != String.Empty) { ConnectToBlog(editingManager.BlogId); } }