Beispiel #1
0
    // Token: 0x060001D8 RID: 472 RVA: 0x00006E14 File Offset: 0x00005014
    protected virtual void OnPaint(PaintEventArgs e)
    {
        Bitmap    bitmap    = GControl8.smethod_8(GControl8.smethod_6(this), GControl8.smethod_7(this));
        Graphics  graphics  = GControl8.smethod_9(bitmap);
        Rectangle rectangle = new Rectangle(0, 0, GControl8.smethod_6(this), GControl8.smethod_7(this));
        Graphics  graphics2 = graphics;

        GControl8.smethod_10(graphics2, SmoothingMode.HighQuality);
        GControl8.smethod_11(graphics2, PixelOffsetMode.HighQuality);
        GControl8.smethod_12(graphics2, TextRenderingHint.ClearTypeGridFit);
        GControl8.smethod_14(graphics2, GControl8.smethod_13(this));
        GControl8.smethod_16(graphics2, GControl8.smethod_15(this.color_0), rectangle);
        graphics2.DrawString("0", GControl8.smethod_17(this), GControl8.smethod_15(this.Color_1), new Rectangle(2, 1, GControl8.smethod_6(this), GControl8.smethod_7(this)), GClass6.stringFormat_1);
        GEnum5 genum = this.genum5_0;

        if (genum == GEnum5.Over)
        {
            graphics2.FillRectangle(new SolidBrush(Color.FromArgb(30, Color.White)), rectangle);
        }
        else if (genum == GEnum5.Down)
        {
            graphics2.FillRectangle(new SolidBrush(Color.FromArgb(30, Color.Black)), rectangle);
        }
        base.OnPaint(e);
        graphics.Dispose();
        e.Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
        e.Graphics.DrawImageUnscaled(bitmap, 0, 0);
        bitmap.Dispose();
    }
Beispiel #2
0
 // Token: 0x060001D7 RID: 471 RVA: 0x00006D8C File Offset: 0x00004F8C
 public GControl8()
 {
     base.SetStyle(ControlStyles.UserPaint | ControlStyles.ResizeRedraw | ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, true);
     this.DoubleBuffered = true;
     GControl8.smethod_5(this, Color.White);
     base.Size   = new Size(18, 18);
     this.Anchor = (AnchorStyles.Top | AnchorStyles.Right);
     this.Font   = new Font("Marlett", 12f);
 }
Beispiel #3
0
    // Token: 0x060001D1 RID: 465 RVA: 0x00006D48 File Offset: 0x00004F48
    protected virtual void OnClick(EventArgs e)
    {
        base.OnClick(e);
        FormWindowState formWindowState = GControl8.smethod_3(GControl8.smethod_2(this));

        if (formWindowState == FormWindowState.Normal)
        {
            GControl8.smethod_4(GControl8.smethod_2(this), FormWindowState.Minimized);
            return;
        }
        if (formWindowState != FormWindowState.Maximized)
        {
            return;
        }
        GControl8.smethod_4(GControl8.smethod_2(this), FormWindowState.Minimized);
    }
Beispiel #4
0
 // Token: 0x060001D0 RID: 464 RVA: 0x00002CBC File Offset: 0x00000EBC
 protected virtual void OnMouseMove(MouseEventArgs e)
 {
     base.OnMouseMove(e);
     this.int_0 = GControl8.smethod_1(e);
     GControl8.smethod_0(this);
 }
Beispiel #5
0
 // Token: 0x060001CF RID: 463 RVA: 0x00002CA6 File Offset: 0x00000EA6
 protected virtual void OnMouseUp(MouseEventArgs e)
 {
     base.OnMouseUp(e);
     this.genum5_0 = GEnum5.Over;
     GControl8.smethod_0(this);
 }
Beispiel #6
0
 // Token: 0x060001CE RID: 462 RVA: 0x00002C90 File Offset: 0x00000E90
 protected virtual void OnMouseLeave(EventArgs e)
 {
     base.OnMouseLeave(e);
     this.genum5_0 = GEnum5.None;
     GControl8.smethod_0(this);
 }