Example #1
0
 private void MyConstructor()
 {
     _controller = AlaskaPak.Controller;
     _controller.LayersChanged += Controller_LayersChanged;
     _selectableLayers = _controller.GetSelectableLayers();
     Enabled = MapHasSelectableLayer;
 }
Example #2
0
 private void MyConstructor()
 {
     _controller = AlaskaPak.Controller;
     _controller.LayersChanged += Controller_LayersChanged;
     _data = new FormData(_controller.GetPointLayers());
     Enabled = MapHasPointFeatureLayer;
 }
Example #3
0
 //In a real singleton pattern, the constructor would be private.
 //However FindExtension() needs to create the instance, so we rely
 //on the good behavior of FindExtension, and my classes.
 public AlaskaPak()
 {
     _singleton = this;
 }
 private void MyConstructor()
 {
     _controller = AlaskaPak.Controller;
     _controller.LayersChanged += Controller_LayersChanged;
     _rasterLayers = _controller.GetRasterLayers();
     Enabled = MapHasTwoOrMoreRasterLayers;
 }