/// <summary> /// Inidcate the input file have already loaded into the ArcMap. /// </summary> private void inputRasterComboBox_SelectedIndexChanged(object sender, EventArgs e) { editLayer = (IRasterLayer)ArcMapApp.GetLayer(inputRasterComboBox.Text); ShowExtent(editLayer); }
/// <summary> /// Select the reference file loaded in the ArcMap. /// </summary> private void outputExtentComboBox_SelectedIndexChanged(object sender, EventArgs e) { IRasterLayer rasterLayer = (IRasterLayer)ArcMapApp.GetLayer(outputExtentComboBox.Text); ShowExtent(rasterLayer); }