private void SyncTheme(TmNode node) { Debug.Assert(node != null, "There is no bound TMNode for this property panel"); if (node == null) { MessageBox.Show("Internal Error: Unable to find the node to sync."); return; } if (string.IsNullOrEmpty(node.Metadata.Path)) { MessageBox.Show("Theme has no metadata"); return; } if (node.HasChildren) SyncThemes(node); else { // Use node.Sync(true) is we don't care about the messages string message = node.SyncPubDate(true); string nextMessage = node.SyncSummary(); if (nextMessage != null) message = message == null ? nextMessage : message + "\n" + nextMessage; nextMessage = node.SyncDescription(); if (nextMessage != null) message = message == null ? nextMessage : message + "\n" + nextMessage; nextMessage = node.SyncTags(); if (nextMessage != null) message = message == null ? nextMessage : message + "\n" + nextMessage; if (message != null) MessageBox.Show(message); } }