MapSuiteGisEditor/GisEditorInfrastructure/Plugins/Styles/StyleBuilder/StyleBuilderWindow.xaml.cs
/// <summary>
/// Trees the view item drop.
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The <see cref="DragEventArgs" /> instance containing the event data.</param>
Trees the view item drop.
Trees the view item drop .
[Obfuscation]
        private void TreeViewItemDrop(object sender, DragEventArgs e)
        {
            Grid item = sender as Grid;
            if (item != null)
            {
                var newStyleItemParent = ((StyleItemViewModel)e.Data.GetData(typeof(StyleItemViewModel))).StyleItem.Parent as StyleLayerListItem;
                if (newStyleItemParent != null)
                {
                    if (draggingItemParent != null)
                    {
                        draggingItemParent.UpdateConcreteObject();
                        var parentUI = draggingItemParent.GetUI(styleBuilderViewModel.StyleArguments);
                        if (parentUI != null) draggingItemParent.UpdateUI(parentUI);
                    }
                    if (newStyleItemParent != draggingItemParent)
                    {
                        newStyleItemParent.UpdateConcreteObject();
                        var parentUI = newStyleItemParent.GetUI(styleBuilderViewModel.StyleArguments);
                        if (parentUI != null) newStyleItemParent.UpdateUI(parentUI);
                    }
                    styleBuilderViewModel.UpdatePreviewSource();
                }
            }
        }
[ Obfuscation ] private void TreeViewItemDrop ( object sender , DragEventArgs e ) { Grid item = sender as Grid ; if ( item != null ) { var newStyleItemParent = ( ( StyleItemViewModel ) e . Data . GetData ( typeof ( StyleItemViewModel ) ) ) . StyleItem . Parent as StyleLayerListItem ; if ( newStyleItemParent != null ) { if ( draggingItemParent != null ) { draggingItemParent . UpdateConcreteObject ( ) ; var parentUI = draggingItemParent . GetUI ( styleBuilderViewModel . StyleArguments ) ; if ( parentUI != null ) draggingItemParent . UpdateUI ( parentUI ) ; } if ( newStyleItemParent != draggingItemParent ) { newStyleItemParent . UpdateConcreteObject ( ) ; var parentUI = newStyleItemParent . GetUI ( styleBuilderViewModel . StyleArguments ) ; if ( parentUI != null ) newStyleItemParent . UpdateUI ( parentUI ) ; } styleBuilderViewModel . UpdatePreviewSource ( ) ; } } }
Trees the view item drop.
Trees the view item drop .
sender
object
None
e
DragEventArgs
The  instance containing the event data.
The instance containing the event data .