Пример #1
0
 // Token: 0x0600017B RID: 379 RVA: 0x000066BC File Offset: 0x000048BC
 public void method_1()
 {
     for (int i = GControl6.smethod_10(GControl6.smethod_9(this.ListBox_0)) - 1; i >= 0; i += -1)
     {
         GControl6.smethod_12(GControl6.smethod_2(this.ListBox_0), GControl6.smethod_11(GControl6.smethod_9(this.ListBox_0), i));
     }
 }
Пример #2
0
 // Token: 0x0600017D RID: 381 RVA: 0x00002A85 File Offset: 0x00000C85
 protected virtual void OnCreateControl()
 {
     base.OnCreateControl();
     if (!GControl6.smethod_26(GControl6.smethod_25(this), this.ListBox_0))
     {
         GControl6.smethod_27(GControl6.smethod_25(this), this.ListBox_0);
     }
 }
Пример #3
0
 // Token: 0x06000180 RID: 384 RVA: 0x00006904 File Offset: 0x00004B04
 public GControl6()
 {
     base.SetStyle(ControlStyles.UserPaint | ControlStyles.ResizeRedraw | ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, true);
     this.DoubleBuffered = true;
     GControl6.smethod_30(this.ListBox_0, DrawMode.OwnerDrawFixed);
     GControl6.smethod_31(this.ListBox_0, false);
     GControl6.smethod_32(this.ListBox_0, false);
     GControl6.smethod_33(this.ListBox_0, BorderStyle.None);
     GControl6.smethod_34(this.ListBox_0, this.color_0);
     GControl6.smethod_35(this.ListBox_0, Color.White);
     this.ListBox_0.Location   = new Point(3, 3);
     this.ListBox_0.Font       = new Font("Segoe UI", 8f);
     this.ListBox_0.ItemHeight = 20;
     this.ListBox_0.Items.Clear();
     this.ListBox_0.IntegralHeight = false;
     base.Size      = new Size(131, 101);
     this.BackColor = this.color_0;
 }
Пример #4
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();
    }
Пример #5
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();
 }
Пример #6
0
 // Token: 0x0600017A RID: 378 RVA: 0x00002A73 File Offset: 0x00000C73
 public void method_0()
 {
     GControl6.smethod_3(GControl6.smethod_2(this.ListBox_0));
 }
Пример #7
0
 // Token: 0x0600017F RID: 383 RVA: 0x00002AD9 File Offset: 0x00000CD9
 public void method_4(object object_0)
 {
     GControl6.smethod_12(GControl6.smethod_2(this.ListBox_0), "");
     GControl6.smethod_28(GControl6.smethod_2(this.ListBox_0), object_0);
 }