Esempio n. 1
0
 /// <summary>
 /// Simply echo this event out to members above this group that might be listening to it.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected virtual void OnLayerAdded(object sender, LayerEventArgs e)
 {
     if (LayerAdded != null) LayerAdded(sender, e);
 }
Esempio n. 2
0
 private void Layers_LayerAdded(object sender, LayerEventArgs e)
 {
     OnLayerAdded(sender, e);    
 }
Esempio n. 3
0
 void MapFrame_LayerAdded(object sender, LayerEventArgs e)
 {
    OnLayerAdded(sender, e);
 }
Esempio n. 4
0
 private void Layers_LayerRemoved(object sender, LayerEventArgs e)
 {
     if(GetLayerCount(true) == 0)
     {
         ExtentsInitialized = false;
     }
 }
Esempio n. 5
0
 /// <summary>
 /// Zooms to the envelope if no envelope has been established for this frame.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected virtual void Layers_LayerAdded(object sender, LayerEventArgs e)
 {
     if (ExtentsInitialized) return;
     ExtentsInitialized = true;
     if(e.Layer != null)Extents = e.Layer.Envelope;
 }
 void Layers_LayerSelected(object sender, LayerEventArgs e)
 {
     MessageBox.Show("Test!");
 }