Ejemplo n.º 1
0
 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.ReloadNode;
     form.ShowDialog();
     //Treeview may need updating.
     //Data type (icon) may have changed, and sub-themes may have been added/removed.
     node.UpdateTree();
 }
Ejemplo n.º 2
0
 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();
     form.Message = "Syncing all themes in " + node.Name + "...";
     form.AllowCancel = true;
     form.Node = node;
     form.Command = form.SyncNode;
     form.ShowDialog();
     //Treeview may need updating.
     //Description is used for tool tips, and PubDate is used for highlighting the icon.
     node.UpdateTree();            
 }