public static EditShapeAttributeForm GetInstance(MapperForm parent, MapInterActionHandler mapInterActionHandler)
 {
     if (_instance == null)
     {
         _instance = new EditShapeAttributeForm(parent, mapInterActionHandler);
     }
     return(_instance);
 }
 public EditShapeAttributeForm(MapperForm parent, MapInterActionHandler mapInterActionHandler)
 {
     InitializeComponent();
     MapInterActionHandler            = mapInterActionHandler;
     MapInterActionHandler.Selection += OnLayerSelection;
     MapInterActionHandler.MapLayersHandler.CurrentLayer += OnCurrentLayer;
     _parentForm      = parent;
     _currentMapLayer = MapInterActionHandler.MapLayersHandler.CurrentMapLayer;
 }
 private void Cleanup()
 {
     _currentMapLayer = null;
     _parentForm      = null;
     _instance        = null;
 }