Exemplo n.º 1
0
 private void OnLayerRemoved(object sender, _DMapEvents_LayerRemovedEvent e)
 {
     if (_mapLayersHandler.Exists(Name))
     {
         MapRedrawNeeded?.Invoke(this, EventArgs.Empty);
     }
 }
Exemplo n.º 2
0
 internal LayerRemovedEventArgs(_DMapEvents_LayerRemovedEvent args)
 {
     _args = args;
     if (args == null)
     {
         throw new NullReferenceException("Internal reference is null.");
     }
 }
Exemplo n.º 3
0
        void axMap1_LayerRemoved(object sender, _DMapEvents_LayerRemovedEvent e)
        {
            //如果清空了图层 禁用按钮
            if (axMap1.NumLayers == 0)
            {
                resetAllToolStripBtn(s => s.Enabled = false);
                recover_btn.Enabled   = false;
                removeAll_btn.Enabled = false;
            }

            Debug.Print("Layer removed.");
        }
Exemplo n.º 4
0
 void axMap1_LayerRemoved(object sender, _DMapEvents_LayerRemovedEvent e)
 {
     Debug.Print("Layer removed.");
 }