コード例 #1
0
            // Token: 0x06001A35 RID: 6709 RVA: 0x0004CF40 File Offset: 0x0004B140
            private void timer_1_Elapsed(object sender, EventArgs e)
            {
                Class205.Class127 @class   = Interlocked.CompareExchange <Class205.Class127>(ref Class205.Class127.class127_0, this, null);
                Point             position = Cursor.Position;

                if (@class == this && position == this.point_0)
                {
                    int       num         = Class124.Instance.method_6(0, 4);
                    Rectangle workingArea = Screen.FromPoint(position).WorkingArea;
                    switch (num)
                    {
                    case 0:
                        break;

                    case 1:
                        goto IL_75;

                    case 2:
                        goto IL_BD;

                    case 3:
                        goto IL_CF;

                    default:
                        goto IL_115;
                    }
IL_63:
                    if (position.X != workingArea.Left)
                    {
                        Class465.smethod_3(new Point(position.X - 1, position.Y));
                        goto IL_115;
                    }
IL_75:
                    if (position.X != workingArea.Right)
                    {
                        Class465.smethod_3(new Point(position.X + 1, position.Y));
                        goto IL_115;
                    }
                    goto IL_63;
IL_BD:
                    if (position.Y != workingArea.Top)
                    {
                        Class465.smethod_3(new Point(position.X, position.Y - 1));
                        goto IL_115;
                    }
IL_CF:
                    if (position.Y == workingArea.Bottom)
                    {
                        goto IL_BD;
                    }
                    Class465.smethod_3(new Point(position.X, position.Y + 1));
                }
IL_115:
                this.point_0 = Cursor.Position;
            }
コード例 #2
0
 // Token: 0x06001A2D RID: 6701 RVA: 0x0004CCCC File Offset: 0x0004AECC
 private void method_2(Class205.Class127 hotkey, bool processEndEvents)
 {
     hotkey.method_6(processEndEvents);
     hotkey.Dispose();
     if (this.dictionary_0.ContainsKey(hotkey.class87_0.Hotkey))
     {
         Dictionary <IntPtr, Class205.Class127> dictionary = this.dictionary_0[hotkey.class87_0.Hotkey];
         dictionary.Remove(hotkey.intptr_0);
         if (dictionary.Count == 0)
         {
             this.dictionary_0.Remove(hotkey.class87_0.Hotkey);
         }
     }
 }