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 { node.SyncWithMetadata(true); } }