コード例 #1
0
        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)
                    {
                    }
                }
            }
        }
コード例 #2
0
 public ImagePropertiesSteps(ImagePropertiesForm imageProperties)
 {
     this.imageProperties = imageProperties;
 }