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); }
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); }
private void method_15(JsonReader jsonReader_0, Interface11 interface11_0, XmlNamespaceManager xmlNamespaceManager_0, Interface10 interface10_0) { string str; Func <Interface12, bool> func; Label_0000: func = null; Class107 class2 = new Class107(); JsonToken token = jsonReader_0.JsonToken_0; switch (token) { case JsonToken.StartConstructor: str = jsonReader_0.Object_0.ToString(); goto Label_0140; case JsonToken.PropertyName: { if ((interface10_0.XmlNodeType_0 == XmlNodeType.Document) && (interface11_0.Interface12_0 != null)) { throw new JsonSerializationException("JSON root object has multiple properties. The root object must have a single property in order to create a valid XML document. Consider specifing a DeserializeRootElementName."); } class2.string_0 = jsonReader_0.Object_0.ToString(); jsonReader_0.Read(); if (jsonReader_0.JsonToken_0 != JsonToken.StartArray) { this.method_7(jsonReader_0, interface11_0, xmlNamespaceManager_0, class2.string_0, interface10_0); break; } int num = 0; while (jsonReader_0.Read()) { if (jsonReader_0.JsonToken_0 == JsonToken.EndArray) { break; } this.method_7(jsonReader_0, interface11_0, xmlNamespaceManager_0, class2.string_0, interface10_0); num++; } if ((num == 1) && this.WriteArrayAttribute) { if (func == null) { func = new Func <Interface12, bool>(class2.method_0); } Interface12 interface2 = interface10_0.Prop_0.OfType <Interface12>().Single <Interface12>(func); this.method_11(interface2, interface11_0); } break; } case JsonToken.Comment: interface10_0.imethod_0(interface11_0.imethod_1((string)jsonReader_0.Object_0)); break; default: switch (token) { case JsonToken.EndObject: case JsonToken.EndArray: return; } throw new JsonSerializationException("Unexpected JsonToken when deserializing node: " + jsonReader_0.JsonToken_0); } Label_0044: if ((jsonReader_0.JsonToken_0 == JsonToken.PropertyName) || jsonReader_0.Read()) { goto Label_0000; } return; Label_0140: if (!jsonReader_0.Read() || (jsonReader_0.JsonToken_0 == JsonToken.EndConstructor)) { goto Label_0044; } this.method_7(jsonReader_0, interface11_0, xmlNamespaceManager_0, str, interface10_0); goto Label_0140; }