Exemplo n.º 1
0
        protected virtual void OnThemeViewDragDrop(DragDropItemEventArgs e)
        {
            EventHandler <DragDropItemEventArgs> handler = ThemeViewDragDrop;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemplo n.º 2
0
        private void themeView_ThemeViewDragDrop(object sender, DragDropItemEventArgs e)
        {
            winformsMap1.Overlays[0].Lock.EnterWriteLock();
            try
            {
                ((LayerOverlay)winformsMap1.Overlays[0]).Layers.MoveTo(e.FromOrder, e.ToOrder);
            }
            finally
            {
                winformsMap1.Overlays[0].Lock.ExitWriteLock();
            }
            winformsMap1.Refresh();

            selectedOrder = e.ToOrder;
        }