Exemple #1
0
    // Token: 0x06000181 RID: 385 RVA: 0x00006A2C File Offset: 0x00004C2C
    protected virtual void OnPaint(PaintEventArgs e)
    {
        this.method_5();
        Bitmap    bitmap   = GControl6.smethod_38(GControl6.smethod_36(this), GControl6.smethod_37(this));
        Graphics  graphics = GControl6.smethod_39(bitmap);
        Rectangle rect     = new Rectangle(0, 0, GControl6.smethod_36(this), GControl6.smethod_37(this));

        GControl6.smethod_17(graphics, SmoothingMode.HighQuality);
        GControl6.smethod_18(graphics, PixelOffsetMode.HighQuality);
        GControl6.smethod_20(graphics, TextRenderingHint.ClearTypeGridFit);
        GControl6.smethod_41(graphics, GControl6.smethod_40(this));
        this.ListBox_0.Size = new Size(GControl6.smethod_36(this) - 6, GControl6.smethod_37(this) - 2);
        graphics.FillRectangle(new SolidBrush(this.color_0), rect);
        base.OnPaint(e);
        graphics.Dispose();
        e.Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
        e.Graphics.DrawImageUnscaled(bitmap, 0, 0);
        bitmap.Dispose();
    }
Exemple #2
0
 // Token: 0x0600017C RID: 380 RVA: 0x00006708 File Offset: 0x00004908
 public void method_2(object sender, DrawItemEventArgs e)
 {
     if (GControl6.smethod_13(e) < 0)
     {
         return;
     }
     GControl6.smethod_14(e);
     GControl6.smethod_15(e);
     GControl6.smethod_17(GControl6.smethod_16(e), SmoothingMode.HighQuality);
     GControl6.smethod_18(GControl6.smethod_16(e), PixelOffsetMode.HighQuality);
     GControl6.smethod_19(GControl6.smethod_16(e), InterpolationMode.HighQualityBicubic);
     GControl6.smethod_20(GControl6.smethod_16(e), TextRenderingHint.ClearTypeGridFit);
     if (GControl6.smethod_22(GControl6.smethod_21(e).ToString(), "Selected,") < 0)
     {
         e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(51, 53, 55)), new Rectangle(e.Bounds.X, e.Bounds.Y, e.Bounds.Width, e.Bounds.Height));
         e.Graphics.DrawString(" " + this.ListBox_0.Items[e.Index].ToString(), new Font("Segoe UI", 8f), Brushes.White, (float)e.Bounds.X, (float)(e.Bounds.Y + 2));
     }
     else
     {
         GControl6.smethod_16(e).FillRectangle(GControl6.smethod_23(this.color_1), new Rectangle(GControl6.smethod_24(e).X, e.Bounds.Y, e.Bounds.Width, e.Bounds.Height));
         e.Graphics.DrawString(" " + this.ListBox_0.Items[e.Index].ToString(), new Font("Segoe UI", 8f), Brushes.White, (float)e.Bounds.X, (float)(e.Bounds.Y + 2));
     }
     e.Graphics.Dispose();
 }