public static void ShowLayerProperties(int layerHandle) { var sf = App.Map.get_Shapefile(layerHandle); if (sf != null) { using (var form = new frmSymbologyMain(App.Legend, layerHandle)) { if (form.ShowDialog(MainForm.Instance) == DialogResult.OK) { // do something } } } else { using (var imageForm = new ImagePropertiesForm(layerHandle)) { if (imageForm.ShowDialog(MainForm.Instance) == DialogResult.OK) { } } } }
public ImagePropertiesSteps(ImagePropertiesForm imageProperties) { this.imageProperties = imageProperties; }