private static void ReloadTheme(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 reload."); return; } LoadingForm form = new LoadingForm(); if (node.IsTheme) { form.Message = "Reloading " + node.Name + "..."; } else { form.Message = "Reloading all themes in " + node.Name + "..."; } form.AllowCancel = true; form.Node = node; form.Command = form.ReloadNodeAsync; form.ShowDialog(); //Treeview may need updating. //Data type (icon) may have changed, and sub-themes may have been added/removed. node.UpdateTree(); }
private void SyncThemes(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; } LoadingForm form = new LoadingForm { Message = "Syncing all themes in " + node.Name + "...", AllowCancel = true, Node = node }; form.Command = form.SyncNodeAsync; form.ShowDialog(); //Treeview may need updating. //Description is used for tool tips, and PubDate is used for highlighting the icon. node.UpdateTree(); }