/// <summary>
        /// Handles the ToolExecuting event. All tools start by firing this event.
        /// </summary>
        void _gp_ToolExecuting(object sender, ToolExecutingEventArgs e)
        {
            IGeoProcessorResult2 gpResult = (IGeoProcessorResult2)e.GPResult;

            listView1.Items.Add(new ListViewItem(new string[2] {
                "ToolExecuting", gpResult.Process.Tool.Name + " " + gpResult.Status.ToString()
            }, "information"));
        }
Example #2
0
        public void gpToolExecuting(object sender, ToolExecutingEventArgs e)
        {
            IGeoProcessorResult2 result = e.GPResult as IGeoProcessorResult2;

            //Determine if this is the tool to handle this event.
            if (result.Process.Tool.Name.Equals("CopyFeatures_management") && result.GetInput(0)
                .GetAsText().Equals(FileGDBPath + "\\testPoint_10w") && result.GetOutput(0)
                .GetAsText().Equals(FileGDBPath + "\\testPoint_10w_Copy"))
            {
                //Application specific code.
            }
        }
 /// <summary>
 /// Handles the ToolExecuting event. All tools start by firing this event.
 /// </summary>
 void _gp_ToolExecuting(object sender, ToolExecutingEventArgs e)
 {   
   IGeoProcessorResult2 gpResult = (IGeoProcessorResult2)e.GPResult;
   listView1.Items.Add(new ListViewItem(new string[2] { "ToolExecuting", gpResult.Process.Tool.Name + " " + gpResult.Status.ToString() }, "information"));
 }
Example #4
0
 private void GP_ToolExecuting(object sender, ToolExecutingEventArgs e)
 {
     pStepPro.Message = "Getting things ready...";
     TM.Start();
     SW.Start();
 }
Example #5
0
 void GPToolExecuting(object sender, ToolExecutingEventArgs e)
 {
 }