Ejemplo n.º 1
0
    // Token: 0x06000270 RID: 624 RVA: 0x00007B6C File Offset: 0x00005D6C
    protected virtual void OnPaint(PaintEventArgs e)
    {
        this.method_1();
        Bitmap   bitmap   = GControl12.smethod_7(GControl12.smethod_5(this), GControl12.smethod_6(this));
        Graphics graphics = GControl12.smethod_8(bitmap);

        this.int_0 = GControl12.smethod_5(this);
        this.int_1 = GControl12.smethod_6(this);
        Rectangle rectangle_ = new Rectangle(0, 0, this.int_0, this.int_1);
        Graphics  graphics2  = graphics;

        GControl12.smethod_9(graphics2, SmoothingMode.HighQuality);
        GControl12.smethod_10(graphics2, PixelOffsetMode.HighQuality);
        GControl12.smethod_11(graphics2, TextRenderingHint.ClearTypeGridFit);
        GControl12.smethod_12(graphics2, this.Color_0);
        GControl12.smethod_14(graphics2, GControl12.smethod_13(this.Color_0), rectangle_);
        graphics2.DrawString(GControl12.smethod_15(this), GControl12.smethod_16(this), GControl12.smethod_17(), new Rectangle(10, 4, this.int_0, this.int_1), GClass6.stringFormat_0);
        graphics2.FillRectangle(new SolidBrush(this.color_2), new Rectangle(4, 4, 4, 14));
        if (this.Boolean_0)
        {
            graphics2.DrawString(this.method_0(), this.Font, new SolidBrush(this.color_1), new Rectangle(-4, 2, this.int_0, this.int_1), new StringFormat
            {
                Alignment     = StringAlignment.Far,
                LineAlignment = StringAlignment.Center
            });
        }
        base.OnPaint(e);
        graphics.Dispose();
        e.Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
        e.Graphics.DrawImageUnscaled(bitmap, 0, 0);
        bitmap.Dispose();
    }
Ejemplo n.º 2
0
 // Token: 0x0600026F RID: 623 RVA: 0x00007AEC File Offset: 0x00005CEC
 public GControl12()
 {
     base.SetStyle(ControlStyles.UserPaint | ControlStyles.ResizeRedraw | ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, true);
     this.DoubleBuffered = true;
     GControl12.smethod_3(this, GControl12.smethod_2("Segoe UI", 8f));
     GControl12.smethod_4(this, Color.White);
     base.Size = new Size(GControl12.smethod_5(this), 20);
 }