コード例 #1
0
        // Token: 0x06000242 RID: 578 RVA: 0x000101A0 File Offset: 0x0000E3A0
        protected override void OnPaint(PaintEventArgs config)
        {
            base.OnPaint(config);
            Graphics   graphics = config.Graphics;
            HatchBrush brush    = new HatchBrush(HatchStyle.WideDownwardDiagonal, Color.FromArgb(20, Color.Black), Color.Transparent);

            graphics.Clear(base.Parent.BackColor);
            graphics.SmoothingMode = SmoothingMode.AntiAlias;
            checked
            {
                this.graphicsPath_0 = Class6.smethod_1(1, 6, base.Width - 3, 8, 3);
                try
                {
                    this.int_0 = (int)Math.Round(unchecked (checked ((double)(this.int_3 - this.int_1) / (double)(this.int_2 - this.int_1)) * (double)(checked (base.Width - 11))));
                }
                catch (Exception)
                {
                }
                this.rectangle_0 = new Rectangle(this.int_0, 0, 10, 20);
                graphics.SetClip(this.graphicsPath_0);
                this.rectangle_1           = new Rectangle(1, 7, this.rectangle_0.X + this.rectangle_0.Width - 2, 7);
                this.linearGradientBrush_0 = new LinearGradientBrush(this.rectangle_1, this.color_0, this.color_0, 90f);
                graphics.FillRectangle(this.linearGradientBrush_0, this.rectangle_1);
                if (this.bool_1)
                {
                    graphics.FillRectangle(brush, this.rectangle_1);
                }
                graphics.ResetClip();
                graphics.SmoothingMode = SmoothingMode.AntiAlias;
                graphics.DrawPath(new Pen(Color.FromArgb(180, 180, 180)), this.graphicsPath_0);
                this.graphicsPath_1        = Class6.smethod_0(this.rectangle_0, 3);
                this.linearGradientBrush_1 = new LinearGradientBrush(base.ClientRectangle, SystemColors.Control, SystemColors.Control, 90f);
                graphics.FillPath(this.linearGradientBrush_1, this.graphicsPath_1);
                graphics.DrawPath(new Pen(Color.FromArgb(180, 180, 180)), this.graphicsPath_1);
                if (this.bool_2)
                {
                    graphics.DrawString(Convert.ToString(this.Single_0), this.Font, Brushes.Gray, 0f, 25f);
                }
            }
        }
コード例 #2
0
        // Token: 0x06000200 RID: 512 RVA: 0x0000F0DC File Offset: 0x0000D2DC
        protected override void OnPaint(PaintEventArgs item)
        {
            base.OnPaint(item);
            item.Graphics.Clear(this.BackColor);
            item.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
            GraphicsPath        graphicsPath        = Class6.smethod_1(0, 0, base.Width - 1, base.Height - 1, 5);
            LinearGradientBrush linearGradientBrush = new LinearGradientBrush(base.ClientRectangle, Color.FromArgb(241, 241, 241), Color.FromArgb(241, 241, 241), 90f);

            item.Graphics.SetClip(graphicsPath);
            item.Graphics.FillRectangle(linearGradientBrush, base.ClientRectangle);
            item.Graphics.ResetClip();
            item.Graphics.DrawPath(new Pen(Color.FromArgb(204, 204, 204)), graphicsPath);
            item.Graphics.DrawString(this.Text, this.Font, new SolidBrush(Color.FromArgb(142, 142, 142)), new Rectangle(3, 0, base.Width - 20, base.Height), new StringFormat
            {
                LineAlignment = StringAlignment.Center,
                Alignment     = StringAlignment.Near
            });
            item.Graphics.DrawLine(new Pen(Color.FromArgb(160, 160, 160), 2f), new Point(base.Width - 18, 10), new Point(base.Width - 14, 14));
            item.Graphics.DrawLine(new Pen(Color.FromArgb(160, 160, 160), 2f), new Point(base.Width - 14, 14), new Point(base.Width - 10, 10));
            item.Graphics.DrawLine(new Pen(Color.FromArgb(160, 160, 160)), new Point(base.Width - 14, 15), new Point(base.Width - 14, 14));
            graphicsPath.Dispose();
            linearGradientBrush.Dispose();
        }
コード例 #3
0
        internal int method_0(int int_15)
        {
            int num;
            int nextIn           = this.zlibCodec_0.NextIn;
            int availableBytesIn = this.zlibCodec_0.AvailableBytesIn;
            int num2             = this.int_10;
            int num3             = this.int_9;
            int destinationIndex = this.int_14;
            int num7             = (destinationIndex < this.int_13) ? ((this.int_13 - destinationIndex) - 1) : (this.int_12 - destinationIndex);

            goto Label_07FC;
Label_0056:
            this.int_10 = num2;
            this.int_9  = num3;
            this.zlibCodec_0.AvailableBytesIn = availableBytesIn;
            this.zlibCodec_0.TotalBytesIn    += nextIn - this.zlibCodec_0.NextIn;
            this.zlibCodec_0.NextIn           = nextIn;
            this.int_14 = destinationIndex;
            int_15      = this.class4_0.method_1(this, int_15);
            if (int_15 != 1)
            {
                return(this.Flush(int_15));
            }
            int_15           = 0;
            nextIn           = this.zlibCodec_0.NextIn;
            availableBytesIn = this.zlibCodec_0.AvailableBytesIn;
            num2             = this.int_10;
            num3             = this.int_9;
            destinationIndex = this.int_14;
            num7             = (destinationIndex < this.int_13) ? ((this.int_13 - destinationIndex) - 1) : (this.int_12 - destinationIndex);
            if (this.int_8 != 0)
            {
                this.enum2_0 = Enum2.const_7;
                goto Label_0E11;
            }
            this.enum2_0 = Enum2.const_0;
            goto Label_07FC;
Label_02C8:
            num = this.int_3;
            if (this.int_4 < ((0x102 + (num & 0x1f)) + ((num >> 5) & 0x1f)))
            {
                num = this.int_6[0];
                while (num3 < num)
                {
                    if (availableBytesIn == 0)
                    {
                        this.int_10 = num2;
                        this.int_9  = num3;
                        this.zlibCodec_0.AvailableBytesIn = availableBytesIn;
                        this.zlibCodec_0.TotalBytesIn    += nextIn - this.zlibCodec_0.NextIn;
                        this.zlibCodec_0.NextIn           = nextIn;
                        this.int_14 = destinationIndex;
                        return(this.Flush(int_15));
                    }
                    int_15 = 0;
                    availableBytesIn--;
                    num2 |= (this.zlibCodec_0.InputBuffer[nextIn++] & 0xff) << num3;
                    num3 += 8;
                }
                num = this.int_11[((this.int_7[0] + (num2 & Class3.int_0[num])) * 3) + 1];
                int num10 = this.int_11[((this.int_7[0] + (num2 & Class3.int_0[num])) * 3) + 2];
                if (num10 < 0x10)
                {
                    num2  = num2 >> num;
                    num3 -= num;
                    this.int_5[this.int_4++] = num10;
                }
                else
                {
                    int index = (num10 == 0x12) ? 7 : (num10 - 14);
                    int num9  = (num10 == 0x12) ? 11 : 3;
                    while (num3 < (num + index))
                    {
                        if (availableBytesIn == 0)
                        {
                            this.int_10 = num2;
                            this.int_9  = num3;
                            this.zlibCodec_0.AvailableBytesIn = availableBytesIn;
                            this.zlibCodec_0.TotalBytesIn    += nextIn - this.zlibCodec_0.NextIn;
                            this.zlibCodec_0.NextIn           = nextIn;
                            this.int_14 = destinationIndex;
                            return(this.Flush(int_15));
                        }
                        int_15 = 0;
                        availableBytesIn--;
                        num2 |= (this.zlibCodec_0.InputBuffer[nextIn++] & 0xff) << num3;
                        num3 += 8;
                    }
                    num2  = num2 >> num;
                    num3 -= num;
                    num9 += num2 & Class3.int_0[index];
                    num2  = num2 >> index;
                    num3 -= index;
                    index = this.int_4;
                    num   = this.int_3;
                    if (((index + num9) > ((0x102 + (num & 0x1f)) + ((num >> 5) & 0x1f))) || ((num10 == 0x10) && (index < 1)))
                    {
                        this.int_5               = null;
                        this.enum2_0             = Enum2.const_9;
                        this.zlibCodec_0.Message = "invalid bit length repeat";
                        int_15      = -3;
                        this.int_10 = num2;
                        this.int_9  = num3;
                        this.zlibCodec_0.AvailableBytesIn = availableBytesIn;
                        this.zlibCodec_0.TotalBytesIn    += nextIn - this.zlibCodec_0.NextIn;
                        this.zlibCodec_0.NextIn           = nextIn;
                        this.int_14 = destinationIndex;
                        return(this.Flush(-3));
                    }
                    num10 = (num10 == 0x10) ? this.int_5[index - 1] : 0;
                    do
                    {
                        this.int_5[index++] = num10;
                    }while (--num9 != 0);
                    this.int_4 = index;
                }
                goto Label_02C8;
            }
            this.int_7[0] = -1;
            int[] numArray5 = new int[] { 9 };
            int[] numArray6 = new int[] { 6 };
            int[] numArray7 = new int[1];
            int[] numArray8 = new int[1];
            num = this.int_3;
            num = this.class6_0.method_2(0x101 + (num & 0x1f), 1 + ((num >> 5) & 0x1f), this.int_5, numArray5, numArray6, numArray7, numArray8, this.int_11, this.zlibCodec_0);
            if (num != 0)
            {
                if (num == -3)
                {
                    this.int_5   = null;
                    this.enum2_0 = Enum2.const_9;
                }
                int_15      = num;
                this.int_10 = num2;
                this.int_9  = num3;
                this.zlibCodec_0.AvailableBytesIn = availableBytesIn;
                this.zlibCodec_0.TotalBytesIn    += nextIn - this.zlibCodec_0.NextIn;
                this.zlibCodec_0.NextIn           = nextIn;
                this.int_14 = destinationIndex;
                return(this.Flush(int_15));
            }
            this.class4_0.method_0(numArray5[0], numArray6[0], this.int_11, numArray7[0], this.int_11, numArray8[0]);
            this.enum2_0 = Enum2.const_6;
            goto Label_0056;
Label_0401:
            while (this.int_4 < (4 + (this.int_3 >> 10)))
            {
                while (num3 < 3)
                {
                    if (availableBytesIn == 0)
                    {
                        this.int_10 = num2;
                        this.int_9  = num3;
                        this.zlibCodec_0.AvailableBytesIn = availableBytesIn;
                        this.zlibCodec_0.TotalBytesIn    += nextIn - this.zlibCodec_0.NextIn;
                        this.zlibCodec_0.NextIn           = nextIn;
                        this.int_14 = destinationIndex;
                        return(this.Flush(int_15));
                    }
                    int_15 = 0;
                    availableBytesIn--;
                    num2 |= (this.zlibCodec_0.InputBuffer[nextIn++] & 0xff) << num3;
                    num3 += 8;
                }
                this.int_5[int_1[this.int_4++]] = num2 & 7;
                num2  = num2 >> 3;
                num3 -= 3;
            }
            while (this.int_4 < 0x13)
            {
                this.int_5[int_1[this.int_4++]] = 0;
            }
            this.int_6[0] = 7;
            num           = this.class6_0.method_1(this.int_5, this.int_6, this.int_7, this.int_11, this.zlibCodec_0);
            if (num != 0)
            {
                int_15 = num;
                if (int_15 == -3)
                {
                    this.int_5   = null;
                    this.enum2_0 = Enum2.const_9;
                }
                this.int_10 = num2;
                this.int_9  = num3;
                this.zlibCodec_0.AvailableBytesIn = availableBytesIn;
                this.zlibCodec_0.TotalBytesIn    += nextIn - this.zlibCodec_0.NextIn;
                this.zlibCodec_0.NextIn           = nextIn;
                this.int_14 = destinationIndex;
                return(this.Flush(int_15));
            }
            this.int_4   = 0;
            this.enum2_0 = Enum2.const_5;
            goto Label_02C8;
Label_07FC:
            switch (this.enum2_0)
            {
            case Enum2.const_0:
                while (num3 < 3)
                {
                    if (availableBytesIn == 0)
                    {
                        this.int_10 = num2;
                        this.int_9  = num3;
                        this.zlibCodec_0.AvailableBytesIn = availableBytesIn;
                        this.zlibCodec_0.TotalBytesIn    += nextIn - this.zlibCodec_0.NextIn;
                        this.zlibCodec_0.NextIn           = nextIn;
                        this.int_14 = destinationIndex;
                        return(this.Flush(int_15));
                    }
                    int_15 = 0;
                    availableBytesIn--;
                    num2 |= (this.zlibCodec_0.InputBuffer[nextIn++] & 0xff) << num3;
                    num3 += 8;
                }
                num        = num2 & 7;
                this.int_8 = num & 1;
                switch (((uint)(num >> 1)))
                {
                case 0:
                    num2         = num2 >> 3;
                    num3        -= 3;
                    num          = num3 & 7;
                    num2         = num2 >> num;
                    num3        -= num;
                    this.enum2_0 = Enum2.const_1;
                    break;

                case 1:
                {
                    int[]   numArray  = new int[1];
                    int[]   numArray2 = new int[1];
                    int[][] numArray3 = new int[1][];
                    int[][] numArray4 = new int[1][];
                    Class6.smethod_0(numArray, numArray2, numArray3, numArray4, this.zlibCodec_0);
                    this.class4_0.method_0(numArray[0], numArray2[0], numArray3[0], 0, numArray4[0], 0);
                    num2         = num2 >> 3;
                    num3        -= 3;
                    this.enum2_0 = Enum2.const_6;
                    break;
                }

                case 2:
                    num2         = num2 >> 3;
                    num3        -= 3;
                    this.enum2_0 = Enum2.const_3;
                    break;

                case 3:
                    num2                              = num2 >> 3;
                    num3                             -= 3;
                    this.enum2_0                      = Enum2.const_9;
                    this.zlibCodec_0.Message          = "invalid block type";
                    int_15                            = -3;
                    this.int_10                       = num2;
                    this.int_9                        = num3;
                    this.zlibCodec_0.AvailableBytesIn = availableBytesIn;
                    this.zlibCodec_0.TotalBytesIn    += nextIn - this.zlibCodec_0.NextIn;
                    this.zlibCodec_0.NextIn           = nextIn;
                    this.int_14                       = destinationIndex;
                    return(this.Flush(-3));
                }
                goto Label_07FC;

            case Enum2.const_1:
                while (num3 < 0x20)
                {
                    if (availableBytesIn == 0)
                    {
                        this.int_10 = num2;
                        this.int_9  = num3;
                        this.zlibCodec_0.AvailableBytesIn = availableBytesIn;
                        this.zlibCodec_0.TotalBytesIn    += nextIn - this.zlibCodec_0.NextIn;
                        this.zlibCodec_0.NextIn           = nextIn;
                        this.int_14 = destinationIndex;
                        return(this.Flush(int_15));
                    }
                    int_15 = 0;
                    availableBytesIn--;
                    num2 |= (this.zlibCodec_0.InputBuffer[nextIn++] & 0xff) << num3;
                    num3 += 8;
                }
                if (((~num2 >> 0x10) & 0xffff) != (num2 & 0xffff))
                {
                    this.enum2_0             = Enum2.const_9;
                    this.zlibCodec_0.Message = "invalid stored block lengths";
                    int_15      = -3;
                    this.int_10 = num2;
                    this.int_9  = num3;
                    this.zlibCodec_0.AvailableBytesIn = availableBytesIn;
                    this.zlibCodec_0.TotalBytesIn    += nextIn - this.zlibCodec_0.NextIn;
                    this.zlibCodec_0.NextIn           = nextIn;
                    this.int_14 = destinationIndex;
                    return(this.Flush(-3));
                }
                this.int_2   = num2 & 0xffff;
                num2         = num3 = 0;
                this.enum2_0 = (this.int_2 != 0) ? Enum2.const_2 : ((this.int_8 != 0) ? Enum2.const_7 : Enum2.const_0);
                goto Label_07FC;

            case Enum2.const_2:
                if (availableBytesIn == 0)
                {
                    this.int_10 = num2;
                    this.int_9  = num3;
                    this.zlibCodec_0.AvailableBytesIn = availableBytesIn;
                    this.zlibCodec_0.TotalBytesIn    += nextIn - this.zlibCodec_0.NextIn;
                    this.zlibCodec_0.NextIn           = nextIn;
                    this.int_14 = destinationIndex;
                    return(this.Flush(int_15));
                }
                if (num7 == 0)
                {
                    if ((destinationIndex == this.int_12) && (this.int_13 != 0))
                    {
                        destinationIndex = 0;
                        num7             = (0 < this.int_13) ? ((this.int_13 - destinationIndex) - 1) : (this.int_12 - destinationIndex);
                    }
                    if (num7 == 0)
                    {
                        this.int_14      = destinationIndex;
                        int_15           = this.Flush(int_15);
                        destinationIndex = this.int_14;
                        num7             = (destinationIndex < this.int_13) ? ((this.int_13 - destinationIndex) - 1) : (this.int_12 - destinationIndex);
                        if ((destinationIndex == this.int_12) && (this.int_13 != 0))
                        {
                            destinationIndex = 0;
                            num7             = (0 < this.int_13) ? ((this.int_13 - destinationIndex) - 1) : (this.int_12 - destinationIndex);
                        }
                        if (num7 == 0)
                        {
                            this.int_10 = num2;
                            this.int_9  = num3;
                            this.zlibCodec_0.AvailableBytesIn = availableBytesIn;
                            this.zlibCodec_0.TotalBytesIn    += nextIn - this.zlibCodec_0.NextIn;
                            this.zlibCodec_0.NextIn           = nextIn;
                            this.int_14 = destinationIndex;
                            return(this.Flush(int_15));
                        }
                    }
                }
                int_15 = 0;
                num    = this.int_2;
                if (num > availableBytesIn)
                {
                    num = availableBytesIn;
                }
                if (num > num7)
                {
                    num = num7;
                }
                Array.Copy(this.zlibCodec_0.InputBuffer, nextIn, this.byte_0, destinationIndex, num);
                nextIn           += num;
                availableBytesIn -= num;
                destinationIndex += num;
                num7             -= num;
                this.int_2       -= num;
                if (this.int_2 == 0)
                {
                    this.enum2_0 = (this.int_8 != 0) ? Enum2.const_7 : Enum2.const_0;
                }
                goto Label_07FC;

            case Enum2.const_3:
                while (num3 < 14)
                {
                    if (availableBytesIn == 0)
                    {
                        this.int_10 = num2;
                        this.int_9  = num3;
                        this.zlibCodec_0.AvailableBytesIn = availableBytesIn;
                        this.zlibCodec_0.TotalBytesIn    += nextIn - this.zlibCodec_0.NextIn;
                        this.zlibCodec_0.NextIn           = nextIn;
                        this.int_14 = destinationIndex;
                        return(this.Flush(int_15));
                    }
                    int_15 = 0;
                    availableBytesIn--;
                    num2 |= (this.zlibCodec_0.InputBuffer[nextIn++] & 0xff) << num3;
                    num3 += 8;
                }
                this.int_3 = num = num2 & 0x3fff;
                if (((num & 0x1f) > 0x1d) || (((num >> 5) & 0x1f) > 0x1d))
                {
                    this.enum2_0             = Enum2.const_9;
                    this.zlibCodec_0.Message = "too many length or distance symbols";
                    int_15      = -3;
                    this.int_10 = num2;
                    this.int_9  = num3;
                    this.zlibCodec_0.AvailableBytesIn = availableBytesIn;
                    this.zlibCodec_0.TotalBytesIn    += nextIn - this.zlibCodec_0.NextIn;
                    this.zlibCodec_0.NextIn           = nextIn;
                    this.int_14 = destinationIndex;
                    return(this.Flush(-3));
                }
                num = (0x102 + (num & 0x1f)) + ((num >> 5) & 0x1f);
                if ((this.int_5 != null) && (this.int_5.Length >= num))
                {
                    Array.Clear(this.int_5, 0, num);
                }
                else
                {
                    this.int_5 = new int[num];
                }
                num2         = num2 >> 14;
                num3        -= 14;
                this.int_4   = 0;
                this.enum2_0 = Enum2.const_4;
                goto Label_0401;

            case Enum2.const_4:
                goto Label_0401;

            case Enum2.const_5:
                goto Label_02C8;

            case Enum2.const_6:
                goto Label_0056;

            case Enum2.const_7:
                break;

            case Enum2.const_8:
                goto Label_0EB8;

            case Enum2.const_9:
                int_15      = -3;
                this.int_10 = num2;
                this.int_9  = num3;
                this.zlibCodec_0.AvailableBytesIn = availableBytesIn;
                this.zlibCodec_0.TotalBytesIn    += nextIn - this.zlibCodec_0.NextIn;
                this.zlibCodec_0.NextIn           = nextIn;
                this.int_14 = destinationIndex;
                return(this.Flush(-3));

            default:
                int_15      = -2;
                this.int_10 = num2;
                this.int_9  = num3;
                this.zlibCodec_0.AvailableBytesIn = availableBytesIn;
                this.zlibCodec_0.TotalBytesIn    += nextIn - this.zlibCodec_0.NextIn;
                this.zlibCodec_0.NextIn           = nextIn;
                this.int_14 = destinationIndex;
                return(this.Flush(-2));
            }
Label_0E11:
            this.int_14      = destinationIndex;
            int_15           = this.Flush(int_15);
            destinationIndex = this.int_14;
            num7             = (destinationIndex < this.int_13) ? ((this.int_13 - destinationIndex) - 1) : (this.int_12 - destinationIndex);
            if (this.int_13 != this.int_14)
            {
                this.int_10 = num2;
                this.int_9  = num3;
                this.zlibCodec_0.AvailableBytesIn = availableBytesIn;
                this.zlibCodec_0.TotalBytesIn    += nextIn - this.zlibCodec_0.NextIn;
                this.zlibCodec_0.NextIn           = nextIn;
                this.int_14 = destinationIndex;
                return(this.Flush(int_15));
            }
            this.enum2_0 = Enum2.const_8;
Label_0EB8:
            int_15      = 1;
            this.int_10 = num2;
            this.int_9  = num3;
            this.zlibCodec_0.AvailableBytesIn = availableBytesIn;
            this.zlibCodec_0.TotalBytesIn    += nextIn - this.zlibCodec_0.NextIn;
            this.zlibCodec_0.NextIn           = nextIn;
            this.int_14 = destinationIndex;
            return(this.Flush(1));
        }