Ejemplo n.º 1
0
        private DragDropEffects method_10(DragEventArgs dragEventArgs_0)
        {
            DragDropEffects result     = DragDropEffects.None;
            Interface11     @interface = dragEventArgs_0.Data.GetData("IDragDropSource") as Interface11;

            if (@interface != null && this.string_0 == @interface.imethod_0())
            {
                if (@interface == this)
                {
                    if (this.bool_3 && !base.Sorted)
                    {
                        result = DragDropEffects.Move;
                    }
                }
                else if (this.bool_4)
                {
                    if (@interface.imethod_1() && ([email protected]_2() || dragEventArgs_0.KeyState == 9))
                    {
                        result = DragDropEffects.Copy;
                    }
                    else if (@interface.imethod_2())
                    {
                        result = DragDropEffects.Move;
                    }
                }
            }
            return(result);
        }
Ejemplo n.º 2
0
            public void BeginGeometry(
                DxfEntity entity,
                DrawContext.Wireframe drawContext,
                ArgbColor color,
                bool forText,
                bool fill,
                bool stroke,
                bool correctForBackgroundColor)
            {
                WpfWireframeGraphics3DUsingDrawingVisual.Class380.Class381 class381 = new WpfWireframeGraphics3DUsingDrawingVisual.Class380.Class381(entity);
                class381.Visual.Tag = this.objectTaggerDelegate_0(entity, (DrawContext)drawContext);
                class381.Fill       = fill;
                Interface11 nterface11 = correctForBackgroundColor ? this.interface11_0 : this.interface11_1;

                class381.Brush        = nterface11.imethod_0(color);
                class381.PenThickness = this.method_0(entity, (DrawContext)drawContext, forText);
                if (stroke)
                {
                    class381.Pen = nterface11.imethod_1(color, class381.PenThickness);
                }
                this.stack_0.Push(class381);
                this.visualCollection_0.Add((Visual)class381.Visual);
            }