// Token: 0x0600179C RID: 6044 RVA: 0x0000750A File Offset: 0x0000570A
 protected void method_16(Point p, Class104 settings)
 {
     this.method_7();
     this.method_14(p);
     this.manualResetEventSlim_0.Wait(settings.AfterMoveBeforeClickDelay);
     this.method_18(settings);
 }
 // Token: 0x0600179D RID: 6045 RVA: 0x00007532 File Offset: 0x00005732
 protected void method_17(Struct46 bounds, Class104 settings)
 {
     this.method_7();
     this.method_11(bounds);
     this.manualResetEventSlim_0.Wait(settings.AfterMoveBeforeClickDelay);
     this.method_18(settings);
 }
Exemplo n.º 3
0
        protected override void WndProc(ref Message m)
        {
            base.WndProc(ref m);
            if (!string.Equals(TaxCardFactory.CreateTaxCard().SoftVersion, "FWKP_V2.0_Svr_Client"))
            {
                switch (Class104.smethod_0(ref m))
                {
                case 2:
                    if (!base.TaxCardInstance.CheckIsSelf())
                    {
                        MessageManager.ShowMsgBox("FRM-000014");
                        Environment.Exit(0);
                        return;
                    }
                    break;

                case 1:
                    this.SetInfoStatus("新插入了一个设备!");
                    return;

                case 3:
                    this.SetInfoStatus("设备状态改变!");
                    return;

                case 4:
                    this.SetInfoStatus("移除了一个设备!");
                    return;

                case 5:
                    MessageHelper.MsgWait("插入了一个报税盘,正在读取报税盘信息。");
                    try
                    {
                        try
                        {
                            this.SetInfoStatus("插入报税盘!");
                            base.TaxCardInstance.GetStateInfo(false);
                        }
                        catch (Exception)
                        {
                        }
                        break;
                    }
                    finally
                    {
                        MessageHelper.MsgWait();
                    }
                    break;

                case 6:
                    base.TaxCardInstance.CheckInOutBSP();
                    break;
                }
            }
        }
Exemplo n.º 4
0
        public zzSoundClass81(Class104 class104_2)
        {
            if (class104_2 == null)
            {
                class104_2 = zzSoundClass81.class104_0;
            }
            this.class104_1 = class104_2;
            Class105 @class = this.class104_1.method_1();

            if (@class != null)
            {
                this.class105_0.method_2(@class);
            }
        }
Exemplo n.º 5
0
        public ZzSoundClass81(Class104 class1042)
        {
            if (class1042 == null)
            {
                class1042 = Class1040;
            }
            _class1041 = class1042;
            var @class = _class1041.method_1();

            if (@class != null)
            {
                _class1050.method_2(@class);
            }
        }
Exemplo n.º 6
0
 private void MDIMainForm_Load(object sender, EventArgs e)
 {
     Class104.oRegisterDeviceInterface(base.Handle);
     foreach (Control control in base.Controls)
     {
         try
         {
             MdiClient client = (MdiClient)control;
             client.BackColor = this.BackColor;
         }
         catch
         {
         }
     }
 }
Exemplo n.º 7
0
 internal static void smethod_0(Class857 A_0, Class104 A_1)
 {
 }
Exemplo n.º 8
0
    // Token: 0x0600049A RID: 1178 RVA: 0x00021B24 File Offset: 0x0001FD24
    public override bool vmethod_7(Class104 class104_0)
    {
        Class105 @class = (Class105)class104_0;

        return(this.method_4() == @class.method_4() && Class30.smethod_0(this.method_6(), @class.method_6()));
    }
Exemplo n.º 9
0
    // Token: 0x060006B3 RID: 1715 RVA: 0x00038E38 File Offset: 0x00037038
    public override bool vmethod_7(Class104 class104_0)
    {
        Class106 @class = (Class106)class104_0;

        return(this.method_6() == @class.method_6() && this.method_4() == @class.method_4());
    }
 public override void Visit(Class104 c) { }
 public abstract void Visit(Class104 c);
Exemplo n.º 12
0
        // Token: 0x06001D6D RID: 7533 RVA: 0x0005E7C8 File Offset: 0x0005C9C8
        public static bool smethod_5(Class142 toontownWindow, ManualResetEventSlim waitHandle, ManualResetEventSlim navigateWaitHandle, Class104 settings, PointF target, bool jump, bool finalTarget)
        {
            Class269.Class278 @class           = new Class269.Class278();
            IntPtr            mainWindowHandle = toontownWindow.ToonTownProcess.MainWindowHandle;

            if (!toontownWindow.ToonTownProcess.ProcessOpen)
            {
                return(false);
            }
            Class269.Enum58 @enum = Class269.Enum58.flag_0;
            @class.struct56_0 = Struct56.struct56_0;
            Struct56 a   = Struct56.struct56_0;
            DateTime t   = DateTime.Now.AddMilliseconds(2000.0);
            float    num = finalTarget ? settings.TargetRange : settings.IntermediateTargetRange;

            @class.bool_0 = false;
            EventHandler <EventArgs22> eventHandler = null;

            Class269.Class279 class2 = new Class269.Class279();
            class2.class278_0             = @class;
            class2.manualResetEventSlim_0 = new ManualResetEventSlim(false);
            try
            {
                try
                {
                    Class129 logMonitor = toontownWindow.LogMonitor;
                    if (eventHandler == null)
                    {
                        eventHandler = new EventHandler <EventArgs22>(class2.method_0);
                    }
                    logMonitor.CoordinatesChanged += eventHandler;
                    WaitHandle[] waitHandles = new WaitHandle[]
                    {
                        waitHandle.WaitHandle,
                        class2.manualResetEventSlim_0.WaitHandle,
                        navigateWaitHandle.WaitHandle
                    };
                    WaitHandle.WaitAny(waitHandles);
                    WaitHandle[] waitHandles2 = new WaitHandle[]
                    {
                        waitHandle.WaitHandle,
                        navigateWaitHandle.WaitHandle
                    };
                    DateTime t2 = DateTime.Now.AddMilliseconds(2000.0);
                    try
                    {
                        while (!waitHandle.IsSet && !navigateWaitHandle.IsSet)
                        {
                            Struct56 struct56_ = @class.struct56_0;
                            PointF   location  = struct56_.Location;
                            if (Class477.smethod_0(target, num, location))
                            {
                                return(true);
                            }
                            float num2 = struct56_.method_0(target);
                            float num3 = Math.Abs(num2 - struct56_.float_3);
                            float num4 = Class477.smethod_9(target, struct56_.Location);
                            if (t < DateTime.Now)
                            {
                                if (Struct56.smethod_0(a, struct56_))
                                {
                                    Class269.smethod_16(mainWindowHandle, ref @enum);
                                    Class269.smethod_15(mainWindowHandle, ref @enum);
                                    Class269.smethod_14(mainWindowHandle, ref @enum);
                                    Class269.smethod_19(mainWindowHandle);
                                }
                                t = DateTime.Now.AddMilliseconds(2000.0);
                            }
                            bool flag2;
                            if ((num4 > 20f && num3 > 20f) || (num4 <= 20f && Class237.smethod_0(target, num, location, struct56_.float_3) == null))
                            {
                                Class269.smethod_16(mainWindowHandle, ref @enum);
                                bool flag = num3 > 180f;
                                if (num2 < struct56_.float_3)
                                {
                                    if (flag)
                                    {
                                        flag2 = Class269.smethod_9(mainWindowHandle, ref @enum, waitHandles2, num3);
                                    }
                                    else
                                    {
                                        flag2 = Class269.smethod_10(mainWindowHandle, ref @enum, waitHandles2, num3);
                                    }
                                }
                                else if (flag)
                                {
                                    flag2 = Class269.smethod_10(mainWindowHandle, ref @enum, waitHandles2, num3);
                                }
                                else
                                {
                                    flag2 = Class269.smethod_9(mainWindowHandle, ref @enum, waitHandles2, num3);
                                }
                            }
                            else
                            {
                                Class269.smethod_15(mainWindowHandle, ref @enum);
                                Class269.smethod_14(mainWindowHandle, ref @enum);
                                if (jump && t2 < DateTime.Now)
                                {
                                    Class269.smethod_18(mainWindowHandle, waitHandles2);
                                    t2 = DateTime.Now.AddMilliseconds(2000.0);
                                }
                                flag2 = Class269.smethod_11(mainWindowHandle, ref @enum, waitHandles2, num4 - settings.TargetRange);
                            }
                            if (!flag2)
                            {
                                class2.manualResetEventSlim_0.Reset();
                                WaitHandle.WaitAny(waitHandles);
                            }
                            if (Class477.smethod_0(target, num, @class.struct56_0.Location))
                            {
                                return(true);
                            }
                            WaitHandle.WaitAny(waitHandles2, 25);
                            a = struct56_;
                        }
                    }
                    finally
                    {
                        Class269.smethod_16(mainWindowHandle, ref @enum);
                        Class269.smethod_15(mainWindowHandle, ref @enum);
                        Class269.smethod_14(mainWindowHandle, ref @enum);
                        Class269.smethod_19(mainWindowHandle);
                    }
                }
                finally
                {
                    @class.bool_0 = true;
                }
            }
            finally
            {
                if (class2.manualResetEventSlim_0 != null)
                {
                    ((IDisposable)class2.manualResetEventSlim_0).Dispose();
                }
            }
            return(false);
        }
Exemplo n.º 13
0
 private void NormalMainForm_Load(object sender, EventArgs e)
 {
     Class104.oRegisterDeviceInterface(base.Handle);
 }
Exemplo n.º 14
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: 0x0600179F RID: 6047 RVA: 0x0003DE78 File Offset: 0x0003C078
        protected Enum107 method_19(int interval, int timeout, Class150 original_capture, Struct46 bounds, Class104 settings)
        {
            RunBaseForm.Class163 @class = new RunBaseForm.Class163();
            @class.int_0 = timeout;
            Action action = null;

            RunBaseForm.Class164 class2 = new RunBaseForm.Class164();
            class2.class163_0             = @class;
            class2.manualResetEventSlim_0 = new ManualResetEventSlim(false);
            Enum107 result;

            try
            {
                if (action == null)
                {
                    action = new Action(class2.method_0);
                }
                using (Task task = new Task(action))
                {
                    try
                    {
                        task.Start();
                        result = this.method_20(interval, original_capture, bounds, settings, class2.manualResetEventSlim_0);
                    }
                    finally
                    {
                        class2.manualResetEventSlim_0.Set();
                        task.Wait();
                    }
                }
            }
            finally
            {
                if (class2.manualResetEventSlim_0 != null)
                {
                    ((IDisposable)class2.manualResetEventSlim_0).Dispose();
                }
            }
            return(result);
        }
Exemplo n.º 16
0
        // Token: 0x06001D6B RID: 7531 RVA: 0x0005E688 File Offset: 0x0005C888
        public static bool smethod_3(Class142 toontownWindow, ManualResetEventSlim waitHandle, List <PointF> path, Class104 settings, bool jump = true)
        {
            Class269.Class274 @class = new Class269.Class274();
            @class.bool_0 = false;
            EventHandler eventHandler = null;

            Class269.Class275 class2 = new Class269.Class275();
            class2.class274_0             = @class;
            class2.manualResetEventSlim_0 = new ManualResetEventSlim(false);
            bool result;

            try
            {
                try
                {
                    Class141 toonTownProcess = toontownWindow.ToonTownProcess;
                    if (eventHandler == null)
                    {
                        eventHandler = new EventHandler(class2.method_0);
                    }
                    toonTownProcess.ProcessExited += eventHandler;
                    result = Class269.smethod_2(toontownWindow, waitHandle, class2.manualResetEventSlim_0, path, settings, jump);
                }
                finally
                {
                    @class.bool_0 = true;
                }
            }
            finally
            {
                if (class2.manualResetEventSlim_0 != null)
                {
                    ((IDisposable)class2.manualResetEventSlim_0).Dispose();
                }
            }
            return(result);
        }
Exemplo n.º 17
0
 // Token: 0x06001D6A RID: 7530 RVA: 0x0005E644 File Offset: 0x0005C844
 public static bool smethod_2(Class142 toontownWindow, ManualResetEventSlim waitHandle, ManualResetEventSlim navigateWaitHandle, List <PointF> path, Class104 settings, bool jump = true)
 {
     for (int i = 0; i < path.Count; i++)
     {
         if (!Class269.smethod_5(toontownWindow, waitHandle, navigateWaitHandle, settings, path[i], jump, i == path.Count - 1))
         {
             return(false);
         }
     }
     return(true);
 }
Exemplo n.º 18
0
        // Token: 0x06001D70 RID: 7536 RVA: 0x0005EC58 File Offset: 0x0005CE58
        public static bool smethod_8(Class142 toontownWindow, ManualResetEventSlim waitHandle, Class104 settings, PointF target, bool jump)
        {
            Class269.Class280 @class = new Class269.Class280();
            @class.bool_0 = false;
            IntPtr mainWindowHandle = toontownWindow.ToonTownProcess.MainWindowHandle;

            if (!toontownWindow.ToonTownProcess.ProcessOpen)
            {
                return(false);
            }
            EventHandler eventHandler = null;
            EventHandler <EventArgs22> eventHandler2 = null;

            Class269.Class281 class2 = new Class269.Class281();
            class2.class280_0             = @class;
            class2.manualResetEventSlim_0 = new ManualResetEventSlim(false);
            bool result;

            try
            {
                try
                {
                    Class141 toonTownProcess = toontownWindow.ToonTownProcess;
                    if (eventHandler == null)
                    {
                        eventHandler = new EventHandler(class2.method_0);
                    }
                    toonTownProcess.ProcessExited += eventHandler;
                    Class129 logMonitor = toontownWindow.LogMonitor;
                    if (eventHandler2 == null)
                    {
                        eventHandler2 = new EventHandler <EventArgs22>(class2.method_1);
                    }
                    logMonitor.CoordinatesChanged += eventHandler2;
                    while (!class2.manualResetEventSlim_0.IsSet && !waitHandle.IsSet)
                    {
                        if (jump)
                        {
                            Class269.smethod_18(mainWindowHandle, new WaitHandle[]
                            {
                                waitHandle.WaitHandle,
                                class2.manualResetEventSlim_0.WaitHandle
                            });
                        }
                        if (!Class269.smethod_5(toontownWindow, waitHandle, class2.manualResetEventSlim_0, settings, target, jump, true))
                        {
                            class2.manualResetEventSlim_0.Wait(100);
                        }
                    }
                    result = (class2.manualResetEventSlim_0.IsSet && !waitHandle.IsSet);
                }
                finally
                {
                    @class.bool_0 = true;
                }
            }
            finally
            {
                if (class2.manualResetEventSlim_0 != null)
                {
                    ((IDisposable)class2.manualResetEventSlim_0).Dispose();
                }
            }
            return(result);
        }
Exemplo n.º 19
0
 // Token: 0x06001D6F RID: 7535 RVA: 0x0005EC04 File Offset: 0x0005CE04
 public static bool smethod_7(Class142 toontownWindow, ManualResetEventSlim waitHandle, List <PointF> path, Class104 settings)
 {
     for (int i = 0; i < path.Count; i++)
     {
         if (i == path.Count - 1)
         {
             return(Class269.smethod_8(toontownWindow, waitHandle, settings, path[i], true));
         }
         if (!Class269.smethod_4(toontownWindow, waitHandle, settings, path[i], true, false))
         {
             return(false);
         }
     }
     return(false);
 }
Exemplo n.º 20
0
        // Token: 0x06001D6E RID: 7534 RVA: 0x0005EB80 File Offset: 0x0005CD80
        public static bool smethod_6(Class142 toontownWindow, ManualResetEventSlim waitHandle, Class101 wayPointsSettings, Class108 dock, Class104 settings)
        {
            Struct56? @struct = Class269.smethod_0(toontownWindow, waitHandle, -1);

            if (@struct == null)
            {
                return(false);
            }
            if (@struct.Value.IsDock)
            {
                return(true);
            }
            Enum57 playground = toontownWindow.Playground;
            Dictionary <PointF, Enum99> points_dic;

            if (wayPointsSettings.WayPoints.ContainsKey(playground))
            {
                points_dic = wayPointsSettings.WayPoints[playground];
            }
            else
            {
                points_dic = null;
            }
            List <PointF> path = Class269.smethod_21(points_dic, @struct.Value.Location, dock.DockLocation);

            return(Class269.smethod_7(toontownWindow, waitHandle, path, settings));
        }
Exemplo n.º 21
0
    // Token: 0x06000505 RID: 1285 RVA: 0x0002B6EC File Offset: 0x000298EC
    public static Class144 smethod_1(object object_0, Type type_0)
    {
        Class144 @class = object_0 as Class144;

        if (@class != null)
        {
            return(@class);
        }
        if (type_0 == null)
        {
            if (object_0 == null)
            {
                return(new Class171());
            }
            type_0 = object_0.GetType();
        }
        type_0 = Class107.smethod_1(type_0);
        if (type_0 == Class28.type_0)
        {
            @class = new Class171();
            if (object_0 != null && object_0.GetType() != Class28.type_0)
            {
                @class.method_1(object_0.GetType());
            }
        }
        else if (Class104.smethod_0 <Array>(type_0))
        {
            @class = new Class145();
        }
        else if (Class104.smethod_0 <string>(type_0))
        {
            @class = new Class148();
        }
        else if (Class104.smethod_0 <IntPtr>(type_0))
        {
            @class = new Class151();
        }
        else if (Class104.smethod_0 <UIntPtr>(type_0))
        {
            @class = new Class162();
        }
        else if (Class104.smethod_0 <ulong>(type_0))
        {
            @class = new Class170();
        }
        else if (Class104.smethod_0 <uint>(type_0))
        {
            @class = new Class168();
        }
        else if (Class104.smethod_0 <ushort>(type_0))
        {
            @class = new Class164();
        }
        else if (Class104.smethod_0 <long>(type_0))
        {
            @class = new Class161();
        }
        else if (Class104.smethod_0 <int>(type_0))
        {
            @class = new Class150();
        }
        else if (Class104.smethod_0 <short>(type_0))
        {
            @class = new Class146();
        }
        else if (Class104.smethod_0 <byte>(type_0))
        {
            @class = new Class169();
        }
        else if (Class104.smethod_0 <sbyte>(type_0))
        {
            @class = new Class166();
        }
        else if (Class104.smethod_0 <double>(type_0))
        {
            @class = new Class163();
        }
        else if (Class104.smethod_0 <float>(type_0))
        {
            @class = new Class167();
        }
        else if (Class104.smethod_0 <bool>(type_0))
        {
            @class = new Class149();
        }
        else if (Class104.smethod_0 <char>(type_0))
        {
            @class = new Class160();
        }
        else if (Class28.smethod_0(type_0))
        {
            Class171 class2 = new Class171();
            class2.method_1(type_0);
            @class = class2;
        }
        else
        {
            if (Class104.smethod_0 <Enum>(type_0))
            {
                Enum enum_;
                if (object_0 == null)
                {
                    if (type_0 == Class28.type_2)
                    {
                        enum_ = null;
                    }
                    else
                    {
                        enum_ = (Enum)Activator.CreateInstance(type_0);
                    }
                }
                else if (type_0 == Class28.type_2 && object_0 is Enum)
                {
                    enum_ = (Enum)object_0;
                }
                else
                {
                    enum_ = (Enum)Enum.ToObject(type_0, object_0);
                }
                return(new Class165(enum_));
            }
            if (Class104.smethod_0 <ValueType>(type_0))
            {
                if (object_0 == null)
                {
                    object object_;
                    if (type_0 == Class28.type_3)
                    {
                        object_ = null;
                    }
                    else
                    {
                        object_ = Activator.CreateInstance(type_0);
                    }
                    @class = new Class159(object_);
                }
                else
                {
                    if (object_0.GetType() != type_0)
                    {
                        try
                        {
                            object_0 = Convert.ChangeType(object_0, type_0);
                        }
                        catch
                        {
                        }
                    }
                    @class = new Class159(object_0);
                }
                return(@class);
            }
            @class = new Class171();
        }
        if (object_0 != null)
        {
            @class.vmethod_1(object_0);
        }
        return(@class);
    }
        // Token: 0x060017A0 RID: 6048 RVA: 0x0003DF3C File Offset: 0x0003C13C
        protected Enum107 method_20(int interval, Class150 original_capture, Struct46 bounds, Class104 settings, ManualResetEventSlim waitHandle = null)
        {
            while (!this.manualResetEventSlim_0.IsSet && (waitHandle == null || !waitHandle.IsSet))
            {
                this.method_7();
                switch (Class433.smethod_0(this.class142_0.ToonTownProcess, original_capture, bounds, settings))
                {
                case Enum107.const_0:
                    return(Enum107.const_0);

                case Enum107.const_1:
                    if (waitHandle == null)
                    {
                        this.manualResetEventSlim_0.Wait(interval);
                    }
                    else
                    {
                        WaitHandle.WaitAny(new WaitHandle[]
                        {
                            this.manualResetEventSlim_0.WaitHandle,
                            waitHandle.WaitHandle
                        }, interval);
                    }
                    break;

                case Enum107.const_2:
                    return(Enum107.const_2);
                }
            }
            return(Enum107.const_1);
        }
Exemplo n.º 23
0
 // Token: 0x060005A3 RID: 1443
 public abstract bool vmethod_7(Class104 class104_0);
Exemplo n.º 24
0
        // Token: 0x06001D6C RID: 7532 RVA: 0x0005E728 File Offset: 0x0005C928
        public static bool smethod_4(Class142 toontownWindow, ManualResetEventSlim waitHandle, Class104 settings, PointF target, bool jump, bool finalTarget)
        {
            Class269.Class276 @class = new Class269.Class276();
            @class.bool_0 = false;
            EventHandler eventHandler = null;

            Class269.Class277 class2 = new Class269.Class277();
            class2.class276_0             = @class;
            class2.manualResetEventSlim_0 = new ManualResetEventSlim(false);
            bool result;

            try
            {
                try
                {
                    Class141 toonTownProcess = toontownWindow.ToonTownProcess;
                    if (eventHandler == null)
                    {
                        eventHandler = new EventHandler(class2.method_0);
                    }
                    toonTownProcess.ProcessExited += eventHandler;
                    result = Class269.smethod_5(toontownWindow, waitHandle, class2.manualResetEventSlim_0, settings, target, jump, finalTarget);
                }
                finally
                {
                    @class.bool_0 = true;
                }
            }
            finally
            {
                if (class2.manualResetEventSlim_0 != null)
                {
                    ((IDisposable)class2.manualResetEventSlim_0).Dispose();
                }
            }
            return(result);
        }
 // Token: 0x0600179E RID: 6046 RVA: 0x0000755A File Offset: 0x0000575A
 protected void method_18(Class104 settings)
 {
     Class465.smethod_8(MouseButtons.Left, settings.ButtonClickDelay, this.manualResetEventSlim_0);
 }
Exemplo n.º 26
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);
        }