/// <summary>
 /// Checks out ESRI Licenses while showing a modal progress dialog with a cancel button
 /// </summary>
 public static bool StartWithDialog()
 {
     LoadingForm _dialog = new LoadingForm();
     _dialog.Message = "Checking for an ArcGIS license.";
     _dialog.Command = _dialog.LoadLicense;
     _dialog.ShowDialog();
     return Running;
 }
 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 is ThemeNode)
         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.BroadcastNodeHasBeenUpdatedEvent();
 }
示例#3
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
            {
                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();
        }
 private static void LoadWithCatalogShowDialog(string path)
 {
     LoadingForm _dialog = new LoadingForm();
     _dialog.Message = "Loading ArcCatalog to try and find metadata.";
     _dialog.Path = path;
     _dialog.Command = _dialog.LoadMetadataWithCatalog;
     _dialog.ShowDialog();
 }
 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.BroadcastNodeHasBeenUpdatedEvent();            
 }