示例#1
0
 internal override int vmethod_1(byte[] A_0, int A_1)
 {
     this.class367_0.vmethod_1(A_0, A_1);
     A_1 += this.class367_0.vmethod_2();
     Class364.smethod_11(A_0, ref A_1, this.byte_0);
     return(0);
 }
示例#2
0
 internal override void vmethod_0(byte[] A_0, int A_1)
 {
     this.int_1   = Class364.smethod_1(A_0, ref A_1);
     this.short_0 = Class364.smethod_0(A_0, ref A_1);
     this.short_1 = Class364.smethod_0(A_0, ref A_1);
     this.long_0  = Class364.smethod_2(A_0, ref A_1);
 }
示例#3
0
    internal virtual void vmethod_4(byte[] A_0, int A_1, int A_2)
    {
        int      num    = 15;
        Class364 class2 = this.vmethod_1();

        if (class2 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("怴夶崸帺似匾㡀⩂⭄⁆ᩈ㽊㽌㩎㉐❒⁔╖㱘", num));
        }
        if (A_0 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("吴䔶䬸缺尼䬾⁀", num));
        }
        if (A_1 < 0)
        {
            throw new ArgumentOutOfRangeException(BookmarkStart.b("尴砶弸崺丼娾㕀", num));
        }
        if (A_2 < 0)
        {
            throw new ArgumentOutOfRangeException(BookmarkStart.b("尴琶嘸为匼䬾", num));
        }
        if ((A_1 + A_2) > A_0.Length)
        {
            throw new ArgumentOutOfRangeException(BookmarkStart.b("尴砶弸崺丼娾㕀捂湄杆⁈ࡊ≌㩎㽐❒", num));
        }
        Class301.smethod_0().method_7(A_0, A_1, A_2, class2);
    }
示例#4
0
 internal override int vmethod_1(byte[] A_0, int A_1)
 {
     Class364.smethod_8(A_0, ref A_1, this.int_7);
     Class364.smethod_8(A_0, ref A_1, this.int_8);
     Class364.smethod_8(A_0, ref A_1, this.int_9);
     Class364.smethod_8(A_0, ref A_1, this.int_10);
     if (this.int_8 != 0)
     {
         Class364.smethod_8(A_0, ref A_1, this.int_11);
         if (this.int_11 != 0)
         {
             this.class366_0.vmethod_1(A_0, A_1);
             A_1 += this.class366_0.vmethod_2();
         }
         Class364.smethod_8(A_0, ref A_1, this.int_12);
         if (this.int_12 != 0)
         {
             this.class366_1.vmethod_1(A_0, A_1);
             A_1 += this.class366_1.vmethod_2();
         }
         Class364.smethod_8(A_0, ref A_1, this.int_13);
         this.class366_2.vmethod_1(A_0, A_1);
         A_1 += this.class366_2.vmethod_2();
         Class364.smethod_8(A_0, ref A_1, this.int_14);
         this.class367_0.vmethod_1(A_0, A_1);
         A_1 += this.class367_0.vmethod_2();
         Class364.smethod_8(A_0, ref A_1, this.int_15);
         Class364.smethod_8(A_0, ref A_1, this.int_16);
         Class364.smethod_8(A_0, ref A_1, this.int_17);
         Class364.smethod_8(A_0, ref A_1, this.int_18);
         Class364.smethod_8(A_0, ref A_1, this.int_19);
     }
     return(A_0.Length);
 }
示例#5
0
    internal override void vmethod_0(byte[] A_0, int A_1)
    {
        int num    = 0;
        int num2   = 0;
        int length = A_0.Length;

        while (num2 < length)
        {
            if (num > 0)
            {
                num -= 3;
            }
            if (Class364.smethod_1(A_0, ref num) == -858997829)
            {
                break;
            }
            num2++;
        }
        byte[] buffer = new byte[num - 4];
        int    num5   = 0;

        this.byte_0 = Class364.smethod_5(A_0, num - 4, ref num5);
        num5       += 4;
        int num6 = (A_0.Length - buffer.Length) - 4;

        this.byte_1 = Class364.smethod_5(A_0, num6, ref num5);
    }
示例#6
0
    internal void method_1(Stream12 A_0)
    {
        int num = 0;

        byte[] buffer = new byte[20];
        Class364.smethod_8(buffer, ref num, this.int_7);
        Class364.smethod_8(buffer, ref num, this.int_8);
        Class364.smethod_8(buffer, ref num, this.int_9);
        Class364.smethod_8(buffer, ref num, this.int_10);
        Class364.smethod_8(buffer, ref num, this.int_11);
        A_0.Write(buffer, 0, buffer.Length);
        if (this.oleLinkType_0 == OleLinkType.Link)
        {
            this.method_2(A_0, 4);
            string[] strArray = this.string_0.Split(new char[] { '\\' });
            string   str      = strArray[strArray.Length - 1];
            this.class366_1 = new Class366(str);
            this.class366_1.method_0(A_0, false);
            this.class366_2 = new Class366(this.string_0);
            this.class366_2.method_0(A_0, true);
            this.method_2(A_0, 0x10);
            this.method_2(A_0, 4);
            this.method_2(A_0, 4);
            this.method_2(A_0, 4);
            this.method_2(A_0, 4);
            this.method_2(A_0, 4);
        }
    }
示例#7
0
 internal override int vmethod_1(byte[] A_0, int A_1)
 {
     Class364.smethod_8(A_0, ref A_1, this.int_1);
     Class364.smethod_6(A_0, ref A_1, this.short_0);
     Class364.smethod_6(A_0, ref A_1, this.short_1);
     Class364.smethod_9(A_0, ref A_1, this.long_0);
     return(0x10);
 }
示例#8
0
    internal void method_4(Interface61 A_0)
    {
        int num = 0x11;

        if (A_0.imethod_3(BookmarkStart.b("㘶瘸场堼", 0x11)))
        {
            Stream1 stream = A_0.imethod_0(BookmarkStart.b("㘶瘸场堼", num));
            this.class365_0 = new Class365(stream);
            stream.Flush();
            stream.Close();
        }
        if (A_0.imethod_3(BookmarkStart.b("㐶瘸夺圼瘾⽀╂⩄", num)))
        {
            Stream1 stream2 = A_0.imethod_0(BookmarkStart.b("㐶瘸夺圼瘾⽀╂⩄", num));
            this.class371_0 = new Class371(stream2);
            stream2.Flush();
            stream2.Close();
        }
        if (A_0.imethod_3(BookmarkStart.b("㘶稸吺值伾เ⅂⽄", num)))
        {
            Stream1 stream5 = A_0.imethod_0(BookmarkStart.b("㘶稸吺值伾เ⅂⽄", num));
            this.class369_0 = new Class369(stream5);
            stream5.Flush();
            stream5.Close();
        }
        if (A_0.imethod_3(BookmarkStart.b("㐶甸刺匼吾ࡀⵂ⍄⡆", num)))
        {
            Stream1 stream4 = A_0.imethod_0(BookmarkStart.b("㐶甸刺匼吾ࡀⵂ⍄⡆", num));
            this.class368_0 = new Class368(stream4);
            stream4.Flush();
            stream4.Close();
        }
        if (A_0.imethod_3(BookmarkStart.b("㘶瘸场堼฾煀ൂ⑄㍆⁈㵊⡌", num)))
        {
            Stream1 stream3 = A_0.imethod_0(BookmarkStart.b("㘶瘸场堼฾煀ൂ⑄㍆⁈㵊⡌", num));
            byte[]  buffer  = new byte[stream3.Length];
            stream3.Read(buffer, 0, buffer.Length);
            if (buffer.Length > 0)
            {
                if (this.method_1() == OleObjectType.Package)
                {
                    this.byte_0 = this.method_7(buffer);
                }
                else
                {
                    int num2 = 0;
                    int num3 = Class364.smethod_1(buffer, ref num2);
                    this.byte_0 = Class364.smethod_5(buffer, num3, ref num2);
                }
            }
            stream3.Flush();
            stream3.Close();
        }
        else
        {
            this.byte_0 = this.method_5(A_0);
        }
    }
示例#9
0
        internal override void vmethod_0(byte[] A_0, int A_1)
        {
            this.class367_0 = new Class365.Class367();
            this.class367_0.vmethod_0(A_0, A_1);
            A_1 += this.class367_0.vmethod_2();
            int num = A_0.Length - this.class367_0.vmethod_2();

            this.byte_0 = Class364.smethod_5(A_0, num, ref A_1);
        }
示例#10
0
    internal virtual int vmethod_0()
    {
        Class364 class2 = this.vmethod_1();

        if (class2 != null)
        {
            return(class2.vmethod_2());
        }
        return(0);
    }
示例#11
0
    internal override void vmethod_0(byte[] A_0, int A_1)
    {
        int num = 1;

        this.int_6 = A_0.Length;
        this.int_7 = Class364.smethod_1(A_0, ref A_1);
        if (this.int_7 != 0x2000001)
        {
            throw new InvalidDataException(BookmarkStart.b("栦攨渪ബ尮䔰䄲倴嘶吸ᬺ吼儾慀ⵂ⩄㍆楈㵊ⱌ⍎㡐㝒", num));
        }
        this.int_8  = Class364.smethod_1(A_0, ref A_1);
        this.int_9  = Class364.smethod_1(A_0, ref A_1);
        this.int_10 = Class364.smethod_1(A_0, ref A_1);
        if (this.int_10 != 0)
        {
            throw new InvalidDataException(BookmarkStart.b("栦攨渪ബ尮䔰䄲倴嘶吸ᬺ吼儾慀ⵂ⩄㍆楈㵊ⱌ⍎㡐㝒", num));
        }
        if (((this.int_8 != 0) && (this.int_8 != 8)) && ((this.int_8 != 12) && ((A_1 + 4) < this.int_6)))
        {
            this.int_11 = Class364.smethod_1(A_0, ref A_1);
            if ((this.int_11 != 0) && ((A_1 + this.int_11) < this.int_6))
            {
                byte[] buffer4 = Class364.smethod_5(A_0, this.int_11, ref A_1);
                this.class366_0 = new Class366(this.string_0);
                this.class366_0.vmethod_0(buffer4, 0);
            }
            this.int_12 = Class364.smethod_1(A_0, ref A_1);
            if ((this.int_12 != 0) && ((A_1 + this.int_12) < this.int_6))
            {
                byte[] buffer3 = Class364.smethod_5(A_0, this.int_12, ref A_1);
                this.class366_1 = new Class366(this.string_0);
                this.class366_1.vmethod_0(buffer3, 0);
            }
            this.int_13 = Class364.smethod_1(A_0, ref A_1);
            if ((this.int_13 != 0) && ((A_1 + this.int_13) < this.int_6))
            {
                byte[] buffer2 = Class364.smethod_5(A_0, this.int_13, ref A_1);
                this.class366_2 = new Class366(this.string_0);
                this.class366_2.vmethod_0(buffer2, 0);
            }
            this.int_14 = Class364.smethod_1(A_0, ref A_1);
            if (this.int_14 == -1)
            {
                throw new InvalidDataException(BookmarkStart.b("栦攨渪ബ尮䔰䄲倴嘶吸ᬺ吼儾慀ⵂ⩄㍆楈㵊ⱌ⍎㡐㝒", num));
            }
            byte[] buffer = Class364.smethod_5(A_0, 0x10, ref A_1);
            this.class367_0 = new Class367();
            this.class367_0.vmethod_0(buffer, 0);
            this.int_15 = Class364.smethod_1(A_0, ref A_1);
            this.int_16 = Class364.smethod_1(A_0, ref A_1);
            this.int_17 = Class364.smethod_1(A_0, ref A_1);
            this.int_18 = Class364.smethod_1(A_0, ref A_1);
            this.int_19 = Class364.smethod_1(A_0, ref A_1);
        }
    }
示例#12
0
 internal override int vmethod_1(byte[] A_0, int A_1)
 {
     Class364.smethod_8(A_0, ref A_1, -131071);
     Class364.smethod_8(A_0, ref A_1, 0xa03);
     this.byte_0 = new byte[] {
         0xff, 0xff, 0xff, 0xff, 0x65, 0xca, 1, 0xb8, 0xfc, 0xa1, 0xd0, 0x11, 0x85, 0xad, 0x44, 0x45,
         0x53, 0x54, 0, 0
     };
     Class364.smethod_11(A_0, ref A_1, this.byte_0);
     return(A_1);
 }
示例#13
0
    private void method_4(Stream12 A_0, string A_1)
    {
        byte[]        buffer   = new byte[4];
        ASCIIEncoding encoding = new ASCIIEncoding();
        int           num      = 0;

        byte[] bytes = encoding.GetBytes(A_1);
        Class364.smethod_8(buffer, ref num, bytes.Length);
        A_0.Write(buffer, 0, buffer.Length);
        if (bytes.Length > 0)
        {
            A_0.Write(bytes, 0, bytes.Length);
        }
    }
示例#14
0
    private void method_28(Stream12 A_0, string A_1, byte[] A_2)
    {
        int num = 14;

        if (string.IsNullOrEmpty(A_1))
        {
            A_1 = this.string_22;
        }
        Encoding encoding = Encoding.Default;
        string   fileName = Path.GetFileName(A_1);

        byte[] bytes   = encoding.GetBytes(fileName);
        byte[] buffer2 = encoding.GetBytes(A_1);
        byte[] buffer3 = new byte[2];
        buffer3[0] = 2;
        byte[] buffer4 = buffer3;
        byte[] buffer5 = new byte[4];
        buffer5[2] = 3;
        byte[] buffer6 = buffer5;
        int    num2    = 4;

        num2  = 4 + buffer4.Length;
        num2 += bytes.Length + 1;
        num2 += buffer2.Length + 1;
        num2 += buffer6.Length;
        num2 += 4;
        num2 += buffer2.Length + 1;
        num2 += 4;
        num2 += A_2.Length;
        num2 += 2;
        int num3 = 0;

        byte[] buffer7 = new byte[num2];
        Class364.smethod_8(buffer7, ref num3, num2 - 4);
        Class364.smethod_11(buffer7, ref num3, buffer4);
        Class364.smethod_11(buffer7, ref num3, bytes);
        num3++;
        Class364.smethod_11(buffer7, ref num3, buffer2);
        num3++;
        Class364.smethod_11(buffer7, ref num3, buffer6);
        Class364.smethod_8(buffer7, ref num3, buffer2.Length + 1);
        Class364.smethod_11(buffer7, ref num3, buffer2);
        num3++;
        Class364.smethod_8(buffer7, ref num3, A_2.Length);
        Class364.smethod_11(buffer7, ref num3, A_2);
        A_0.method_15(BookmarkStart.b("㔳礵吷弹഻฽฿⍁ぃ⽅㹇⽉", num));
        A_0.Write(buffer7, 0, buffer7.Length);
        A_0.Close();
    }
示例#15
0
    internal void method_0(Stream12 A_0)
    {
        byte[] buffer = new byte[this.vmethod_2()];
        int    num    = 0;

        buffer[0] = (byte)this.byte_0.Length;
        num       = 2;
        Class364.smethod_11(buffer, ref num, this.byte_0);
        num += 2;
        Class364.smethod_11(buffer, ref num, BitConverter.GetBytes(-858997829));
        buffer[num] = (byte)this.byte_0.Length;
        num        += 2;
        Class364.smethod_11(buffer, ref num, this.byte_1);
        A_0.Write(buffer, 0, buffer.Length);
    }
示例#16
0
    internal void method_0(Stream1 A_0)
    {
        int num = 0;

        byte[] buffer = new byte[20];
        Class364.smethod_8(buffer, ref num, this.int_7);
        Class364.smethod_8(buffer, ref num, this.int_8);
        Class364.smethod_8(buffer, ref num, this.int_9);
        Class364.smethod_8(buffer, ref num, this.int_10);
        if (this.oleLinkType_0 == OleLinkType.Embed)
        {
            Class364.smethod_8(buffer, ref num, this.int_11);
            A_0.Write(buffer, 0, buffer.Length);
        }
    }
示例#17
0
    private void method_20(Stream12 A_0, byte[] A_1)
    {
        int num  = 0x10;
        int num2 = 0;
        int num3 = (A_1 == null) ? 0 : A_1.Length;

        byte[] buffer = new byte[num3 + 4];
        Class364.smethod_8(buffer, ref num2, num3);
        if (A_1 != null)
        {
            Class364.smethod_11(buffer, ref num2, A_1);
        }
        A_0.method_15(BookmarkStart.b("㜵眷嘹夻༽瀿ు╃㉅ⅇ㱉⥋", num));
        A_0.Write(buffer, 0, buffer.Length);
        A_0.Close();
    }
        // Token: 0x060017A1 RID: 6049 RVA: 0x0003DFE0 File Offset: 0x0003C1E0
        protected unsafe bool method_21(ManualResetEventSlim waitHandle = null)
        {
            int num = 0;

            do
            {
                Size size = new Size(20, 20);
                using (Bitmap bitmap = Class364.smethod_3(this.intptr_0, new Rectangle(Point.Empty, size)))
                {
                    using (Class125 @class = new Class125(bitmap, false))
                    {
                        using (new Class125.Class153(@class))
                        {
                            Struct33 *ptr   = @class.pBase;
                            Struct33  right = new Struct33(0, 0, 0, byte.MaxValue);
                            for (int i = 0; i < base.Size.Height; i++)
                            {
                                for (int j = 0; j < base.Size.Width; j++)
                                {
                                    if (Struct33.smethod_4(*ptr, right))
                                    {
                                        return(true);
                                    }
                                    ptr++;
                                }
                            }
                        }
                    }
                }
                if (waitHandle != null)
                {
                    waitHandle.Wait(100);
                }
                else
                {
                    Thread.Sleep(100);
                }
                num++;
            }while (num < 100 && (waitHandle == null || !waitHandle.IsSet));
            return(false);
        }
示例#19
0
        // Token: 0x0600280B RID: 10251 RVA: 0x00093E4C File Offset: 0x0009204C
        public static Enum107 smethod_0(Class141 toontownWindow, Class150 original_capture, Struct46 bounds, Class104 settings)
        {
            if (original_capture == null)
            {
                return(Enum107.const_2);
            }
            if (bounds.IsSizeEmpty)
            {
                return(Enum107.const_2);
            }
            IntPtr mainWindowHandle = toontownWindow.MainWindowHandle;

            if (!toontownWindow.ProcessOpen)
            {
                return(Enum107.const_2);
            }
            if (original_capture != null && !Struct46.smethod_0(bounds, Struct46.struct46_0))
            {
                Rectangle rec = bounds.method_0(Class410.smethod_16(mainWindowHandle).Size);
                Enum107   result;
                using (Bitmap bitmap = Class364.smethod_3(mainWindowHandle, rec))
                {
                    using (Class125 @class = new Class125(bitmap))
                    {
                        using (Class150 class2 = new Class150(@class))
                        {
                            if (Class150.smethod_1(class2, original_capture, settings.MaxColorRange))
                            {
                                result = Enum107.const_0;
                            }
                            else
                            {
                                result = Enum107.const_1;
                            }
                        }
                    }
                }
                return(result);
            }
            return(Enum107.const_2);
        }
示例#20
0
    internal virtual int vmethod_6(byte[] A_0, int A_1)
    {
        int num = 0x12;

        if (A_0 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("夷䠹主稽ℿ㙁╃", num));
        }
        if ((A_1 < 0) || (A_1 > A_0.Length))
        {
            throw new ArgumentOutOfRangeException(BookmarkStart.b("儷甹娻堽㌿❁ぃ", num));
        }
        int      num2   = A_0.Length - A_1;
        Class364 class2 = this.vmethod_1();

        if (class2 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("洷吹堻嬽㈿⹁㵃⽅♇ⵉὋ㩍≏❑㝓≕ⵗ⡙㥛", num));
        }
        Class301.smethod_0().method_8(class2, A_0, A_1, num2);
        return(num2);
    }
示例#21
0
        // Token: 0x0600280C RID: 10252 RVA: 0x00093F24 File Offset: 0x00092124
        public static Enum107 smethod_1(Class141 toontownWindow, Class150 original_capture, Rectangle capture_bounds, Class104 settings)
        {
            if (original_capture == null)
            {
                return(Enum107.const_2);
            }
            IntPtr mainWindowHandle = toontownWindow.MainWindowHandle;

            if (!toontownWindow.ProcessOpen)
            {
                return(Enum107.const_2);
            }
            if (original_capture != null && capture_bounds.Size.smethod_1())
            {
                Enum107 result;
                using (Bitmap bitmap = Class364.smethod_3(mainWindowHandle, capture_bounds))
                {
                    using (Class125 @class = new Class125(bitmap))
                    {
                        using (Class150 class2 = new Class150(@class))
                        {
                            if (Class150.smethod_1(class2, original_capture, settings.MaxColorRange))
                            {
                                result = Enum107.const_0;
                            }
                            else
                            {
                                result = Enum107.const_1;
                            }
                        }
                    }
                }
                return(result);
            }
            return(Enum107.const_2);
        }
        // Token: 0x060015E7 RID: 5607 RVA: 0x00032490 File Offset: 0x00030690
        private void RegionSelector_Load(object sender, EventArgs e)
        {
            this.RegionSelectorControl.BackgroundOverlayColor      = Color.FromArgb(180, Color.Black);
            this.RegionSelectorControl.BorderColor                 = Color.FromArgb(255, Color.Red);
            this.RegionSelectorControl.WindowRegionOverlayColor    = Color.FromArgb(90, 255, 128, 64);
            this.RegionSelectorControl.CloseMessageTextColor       = Color.FromArgb(200, Color.Red);
            this.RegionSelectorControl.CloseMessageBorderTextColor = Color.FromArgb(200, Color.Black);
            this.RegionSelectorControl.SelectorType                = this.RegionSelectorType;
            this.RegionSelectorControl.FullScreen = this.FullScreenCapture;
            if (this.bool_0 && !this.class141_0.ProcessOpen)
            {
                this.method_0();
                return;
            }
            IntPtr mainWindowHandle = this.class141_0.MainWindowHandle;

            if (this.FullScreenCapture)
            {
                try
                {
                    this.RegionSelectorControl.ScreenCapture = (this.bitmap_0 = Class364.smethod_0());
                }
                catch (Exception ex)
                {
                    ex.smethod_0();
                    this.method_0();
                    return;
                }
                if (!this.bool_0)
                {
                    if (this.FullSize)
                    {
                        this.RegionSelectorControl.SelectionBounds = new Rectangle(Point.Empty, SystemInformation.VirtualScreen.Size);
                    }
                    else
                    {
                        this.RegionSelectorControl.SelectionBounds = this.SelectionBounds;
                    }
                    if (this.FullSelect)
                    {
                        this.RegionSelectorControl.SelectedRegion = new Rectangle(Point.Empty, this.RegionSelectorControl.SelectionBounds.Size).smethod_1(this.RegionSelectorControl.SelectionBounds);
                    }
                    else
                    {
                        this.RegionSelectorControl.SelectedRegion = this.SelectedRegion.smethod_1(this.RegionSelectorControl.SelectionBounds);
                    }
                }
                else
                {
                    try
                    {
                        this.rectangle_0 = Class410.smethod_16(mainWindowHandle);
                    }
                    catch (Exception ex2)
                    {
                        ex2.smethod_0();
                        this.method_0();
                        return;
                    }
                    if (SystemInformation.VirtualScreen.X < 0)
                    {
                        this.rectangle_0.X = this.rectangle_0.X - SystemInformation.VirtualScreen.X;
                    }
                    if (SystemInformation.VirtualScreen.Y < 0)
                    {
                        this.rectangle_0.Y = this.rectangle_0.Y - SystemInformation.VirtualScreen.Y;
                    }
                    if (this.FullSize)
                    {
                        this.RegionSelectorControl.SelectionBounds = this.rectangle_0;
                    }
                    else
                    {
                        this.RegionSelectorControl.SelectionBounds = new Rectangle(this.SelectionBounds.Location.smethod_10(this.rectangle_0.Location), this.SelectionBounds.Size);
                    }
                    if (this.FullSelect)
                    {
                        this.RegionSelectorControl.SelectedRegion = this.RegionSelectorControl.SelectionBounds;
                    }
                    else
                    {
                        this.RegionSelectorControl.SelectedRegion = new Rectangle(this.SelectedRegion.Location.smethod_10(this.rectangle_0.Location), this.SelectedRegion.Size).smethod_1(this.RegionSelectorControl.SelectionBounds);
                    }
                }
                base.FormBorderStyle = FormBorderStyle.None;
                base.Location        = SystemInformation.VirtualScreen.Location;
                base.Size            = SystemInformation.VirtualScreen.Size;
            }
            else if (!this.bool_0)
            {
                if (this.FullSize)
                {
                    try
                    {
                        this.RegionSelectorControl.ScreenCapture = (this.bitmap_0 = Class364.smethod_0());
                    }
                    catch (Exception ex3)
                    {
                        ex3.smethod_0();
                        this.method_0();
                        return;
                    }
                    this.RegionSelectorControl.SelectionBounds = this.SelectionBounds;
                    base.Size = SystemInformation.VirtualScreen.Size;
                }
                else
                {
                    try
                    {
                        this.RegionSelectorControl.ScreenCapture = (this.bitmap_0 = Class364.smethod_1(this.SelectionBounds.smethod_8()));
                    }
                    catch (Exception ex4)
                    {
                        ex4.smethod_0();
                        this.method_0();
                        return;
                    }
                    this.RegionSelectorControl.SelectionBounds = new Rectangle(Point.Empty, this.SelectionBounds.Size);
                    base.Size = this.SelectionBounds.Size;
                }
                if (this.FullSelect)
                {
                    this.RegionSelectorControl.SelectedRegion = new Rectangle(Point.Empty, this.RegionSelectorControl.SelectionBounds.Size);
                }
                else
                {
                    this.RegionSelectorControl.SelectedRegion = new Rectangle(this.SelectedRegion.Location.smethod_11(this.SelectionBounds.Location), this.SelectedRegion.Size).smethod_1(this.RegionSelectorControl.SelectionBounds);
                }
                base.FormBorderStyle = FormBorderStyle.Fixed3D;
                base.CenterToScreen();
            }
            else
            {
                if (this.FullSize)
                {
                    try
                    {
                        this.RegionSelectorControl.ScreenCapture   = (this.bitmap_0 = Class364.smethod_2(mainWindowHandle));
                        this.RegionSelectorControl.SelectionBounds = new Rectangle(Point.Empty, Class410.smethod_18(mainWindowHandle));
                    }
                    catch (Exception ex5)
                    {
                        ex5.smethod_0();
                        this.method_0();
                        return;
                    }
                    base.Size            = this.RegionSelectorControl.SelectionBounds.Size;
                    base.FormBorderStyle = FormBorderStyle.Fixed3D;
                    try
                    {
                        base.Location = Class410.smethod_14(mainWindowHandle).Location;
                        goto IL_60F;
                    }
                    catch (Exception ex6)
                    {
                        ex6.smethod_0();
                        this.method_0();
                        return;
                    }
                }
                try
                {
                    this.RegionSelectorControl.ScreenCapture = (this.bitmap_0 = Class364.smethod_3(mainWindowHandle, this.SelectionBounds));
                }
                catch (Exception ex7)
                {
                    ex7.smethod_0();
                    this.method_0();
                    return;
                }
                this.RegionSelectorControl.SelectionBounds = new Rectangle(Point.Empty, this.SelectionBounds.Size);
                base.Size            = this.SelectionBounds.Size;
                base.FormBorderStyle = FormBorderStyle.Fixed3D;
                try
                {
                    base.Location = Class410.smethod_14(mainWindowHandle).Location.smethod_10(this.SelectionBounds.Location);
                }
                catch (Exception ex8)
                {
                    ex8.smethod_0();
                    this.method_0();
                    return;
                }
IL_60F:
                if (this.FullSelect)
                {
                    this.RegionSelectorControl.SelectedRegion = new Rectangle(Point.Empty, this.RegionSelectorControl.SelectionBounds.Size);
                }
                else
                {
                    this.RegionSelectorControl.SelectedRegion = new Rectangle(this.SelectedRegion.Location.smethod_11(this.SelectionBounds.Location), this.SelectedRegion.Size);
                }
            }
            base.TopMost = true;
            base.BringToFront();
            base.Activate();
            switch (this.RegionSelectorType)
            {
            case Enum124.const_0:
                this.toolTip_0.SetToolTip(this.RegionSelectorControl, this.MovableResizeMessage);
                break;

            case Enum124.const_1:
                this.toolTip_0.SetToolTip(this.RegionSelectorControl, this.MovableMessage);
                break;

            case Enum124.const_2:
                this.toolTip_0.SetToolTip(this.RegionSelectorControl, this.LockedMessage);
                break;
            }
            this.RegionSelectorControl.Focus();
        }
 public override void Visit(Class364 c) { }
示例#24
0
 internal override void vmethod_0(byte[] A_0, int A_1)
 {
     this.int_2  = Class364.smethod_1(A_0, ref A_1);
     this.int_3  = Class364.smethod_1(A_0, ref A_1);
     this.byte_0 = Class364.smethod_5(A_0, 20, ref A_1);
 }
示例#25
0
    internal override void vmethod_0(byte[] A_0, int A_1)
    {
        int num = 5;

        this.int_3 = A_0.Length;
        int             num2      = 0;
        ASCIIEncoding   encoding  = new ASCIIEncoding();
        UnicodeEncoding encoding2 = new UnicodeEncoding();
        Encoding        encoding3 = Encoding.GetEncoding(0x4e3);

        this.class370_0 = new Class370();
        this.class370_0.vmethod_0(A_0, A_1);
        A_1 += this.class370_0.vmethod_2();
        num2 = Class364.smethod_1(A_0, ref A_1);
        if (num2 > 0)
        {
            byte[] bytes = Class364.smethod_5(A_0, num2, ref A_1);
            this.string_0 = encoding3.GetString(bytes);
        }
        uint num3 = Class364.smethod_4(A_0, ref A_1);

        if (num3 > 0)
        {
            byte[] buffer2 = null;
            switch (num3)
            {
            case uint.MaxValue:
            case 0xfffffffe:
                buffer2       = Class364.smethod_5(A_0, 4, ref A_1);
                this.string_0 = encoding.GetString(buffer2);
                goto Label_00E6;
            }
            if (num3 > 400)
            {
                throw new InvalidDataException(BookmarkStart.b("搪愬樮ᄰ䀲䄴䔶尸娺值Ἶ⡀ⵂ敄⥆♈㽊浌㥎ぐ㽒㱔㍖", num));
            }
            buffer2       = Class364.smethod_5(A_0, (int)num3, ref A_1);
            this.string_1 = encoding3.GetString(buffer2);
        }
Label_00E6:
        num2 = Class364.smethod_1(A_0, ref A_1);
        if ((num2 > 0) && (num2 <= 40))
        {
            byte[] buffer4 = Class364.smethod_5(A_0, num2, ref A_1);
            this.string_2 = encoding3.GetString(buffer4);
        }
        this.uint_1 = Class364.smethod_4(A_0, ref A_1);
        if (this.uint_1 == 0x71b239f4)
        {
            num2 = Class364.smethod_1(A_0, ref A_1);
            if (num2 > 0)
            {
                byte[] buffer6 = Class364.smethod_5(A_0, num2, ref A_1);
                this.string_3 = encoding2.GetString(buffer6);
            }
            num3 = Class364.smethod_4(A_0, ref A_1);
            if (num3 > 0)
            {
                if ((num3 != uint.MaxValue) && (num3 != 0xfffffffe))
                {
                    if (num3 > 400)
                    {
                        throw new InvalidDataException(BookmarkStart.b("搪愬樮ᄰ䀲䄴䔶尸娺值Ἶ⡀ⵂ敄⥆♈㽊浌㥎ぐ㽒㱔㍖", num));
                    }
                }
                else
                {
                    byte[] buffer5 = Class364.smethod_5(A_0, 4, ref A_1);
                    this.string_4 = encoding2.GetString(buffer5);
                }
            }
            num2 = Class364.smethod_1(A_0, ref A_1);
            if ((num2 > 0) && (num2 <= 40))
            {
                byte[] buffer3 = Class364.smethod_5(A_0, num2, ref A_1);
                this.string_5 = encoding2.GetString(buffer3);
            }
        }
    }
 public abstract void Visit(Class364 c);