private void method_7(JsonReader jsonReader_0, Interface11 interface11_0, XmlNamespaceManager xmlNamespaceManager_0, string string_8, Interface10 interface10_0)
        {
            switch (string_8)
            {
            case "#text":
                interface10_0.imethod_0(interface11_0.imethod_2(jsonReader_0.Object_0.ToString()));
                return;

            case "#cdata-section":
                interface10_0.imethod_0(interface11_0.imethod_3(jsonReader_0.Object_0.ToString()));
                return;

            case "#whitespace":
                interface10_0.imethod_0(interface11_0.imethod_4(jsonReader_0.Object_0.ToString()));
                return;

            case "#significant-whitespace":
                interface10_0.imethod_0(interface11_0.imethod_5(jsonReader_0.Object_0.ToString()));
                return;
            }
            if (!string.IsNullOrEmpty(string_8) && (string_8[0] == '?'))
            {
                this.method_13(jsonReader_0, interface11_0, interface10_0, string_8);
            }
            else if (jsonReader_0.JsonToken_0 == JsonToken.StartArray)
            {
                this.method_10(jsonReader_0, interface11_0, string_8, interface10_0, xmlNamespaceManager_0);
            }
            else
            {
                this.method_8(jsonReader_0, interface11_0, interface10_0, string_8, xmlNamespaceManager_0);
            }
        }
示例#2
0
        protected override void OnDragDrop(DragEventArgs drgevent)
        {
            base.OnDragDrop(drgevent);
            this.class230_0.method_1();
            Interface11 @interface = drgevent.Data.GetData("IDragDropSource") as Interface11;

            object[] array  = @interface.imethod_3();
            bool     sorted = base.Sorted;

            base.Sorted = false;
            int num  = this.method_9(drgevent.Y);
            int num2 = num;

            if (num >= base.Items.Count)
            {
                base.Items.AddRange(array);
            }
            else
            {
                object[] array2 = array;
                for (int i = 0; i < array2.Length; i++)
                {
                    object item = array2[i];
                    base.Items.Insert(num++, item);
                }
            }
            Enum34 @enum;

            if (drgevent.Effect == DragDropEffects.Move)
            {
                int num3 = num2;
                @interface.imethod_4(ref num3);
                if (@interface == this)
                {
                    num2  = num3;
                    @enum = Enum34.const_0;
                }
                else
                {
                    @enum = Enum34.const_1;
                }
            }
            else
            {
                @enum = Enum34.const_2;
            }
            base.ClearSelected();
            if (this.SelectionMode == SelectionMode.One)
            {
                this.SelectedIndex = num2;
            }
            else if (this.SelectionMode != SelectionMode.None)
            {
                for (int j = num2; j < num2 + array.Length; j++)
                {
                    base.SetSelected(j, true);
                }
            }
            base.Sorted = sorted;
            this.imethod_5(new EventArgs2
            {
                enum34_0      = @enum,
                interface11_0 = @interface,
                interface11_1 = this,
                object_0      = array
            });
            if (@enum != Enum34.const_0)
            {
                @interface.imethod_5(new EventArgs2
                {
                    enum34_0      = (@enum == Enum34.const_1) ? Enum34.const_3 : Enum34.const_4,
                    interface11_0 = @interface,
                    interface11_1 = this,
                    object_0      = array
                });
            }
        }