Example #1
0
 // Token: 0x060001B8 RID: 440 RVA: 0x00006B50 File Offset: 0x00004D50
 public GControl7()
 {
     base.SetStyle(ControlStyles.UserPaint | ControlStyles.ResizeRedraw | ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, true);
     this.DoubleBuffered = true;
     GControl7.smethod_5(this, Color.White);
     base.Size   = new Size(18, 18);
     this.Anchor = (AnchorStyles.Top | AnchorStyles.Right);
     this.Font   = new Font("Marlett", 12f);
 }
Example #2
0
    // Token: 0x060001B2 RID: 434 RVA: 0x00006B0C File Offset: 0x00004D0C
    protected virtual void OnClick(EventArgs e)
    {
        base.OnClick(e);
        FormWindowState formWindowState = GControl7.smethod_3(GControl7.smethod_2(this));

        if (formWindowState != FormWindowState.Normal)
        {
            if (formWindowState == FormWindowState.Maximized)
            {
                GControl7.smethod_4(GControl7.smethod_2(this), FormWindowState.Normal);
                return;
            }
        }
        else
        {
            GControl7.smethod_4(GControl7.smethod_2(this), FormWindowState.Maximized);
        }
    }
Example #3
0
    // Token: 0x060001B9 RID: 441 RVA: 0x00006954 File Offset: 0x00004B54
    protected virtual void OnPaint(PaintEventArgs e)
    {
        Bitmap    bitmap    = GControl7.smethod_8(GControl7.smethod_6(this), GControl7.smethod_7(this));
        Graphics  graphics  = GControl7.smethod_9(bitmap);
        Rectangle rectangle = new Rectangle(0, 0, GControl7.smethod_6(this), GControl7.smethod_7(this));
        Graphics  graphics2 = graphics;

        GControl7.smethod_10(graphics2, SmoothingMode.HighQuality);
        GControl7.smethod_11(graphics2, PixelOffsetMode.HighQuality);
        GControl7.smethod_12(graphics2, TextRenderingHint.ClearTypeGridFit);
        GControl7.smethod_14(graphics2, GControl7.smethod_13(this));
        GControl7.smethod_16(graphics2, GControl7.smethod_15(this.color_0), rectangle);
        if (GControl7.smethod_3(GControl7.smethod_2(this)) != FormWindowState.Maximized)
        {
            if (base.FindForm().WindowState == FormWindowState.Normal)
            {
                graphics2.DrawString("2", this.Font, new SolidBrush(this.Color_1), new Rectangle(1, 1, base.Width, base.Height), GClass6.stringFormat_1);
            }
        }
        else
        {
            graphics2.DrawString("1", GControl7.smethod_17(this), GControl7.smethod_15(this.Color_1), new Rectangle(1, 1, GControl7.smethod_6(this), GControl7.smethod_7(this)), GClass6.stringFormat_1);
        }
        GEnum5 genum = this.genum5_0;

        if (genum != GEnum5.Over)
        {
            if (genum == GEnum5.Down)
            {
                graphics2.FillRectangle(new SolidBrush(Color.FromArgb(30, Color.Black)), rectangle);
            }
        }
        else
        {
            graphics2.FillRectangle(new SolidBrush(Color.FromArgb(30, Color.White)), rectangle);
        }
        base.OnPaint(e);
        graphics.Dispose();
        e.Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
        e.Graphics.DrawImageUnscaled(bitmap, 0, 0);
        bitmap.Dispose();
    }
Example #4
0
 // Token: 0x060001B1 RID: 433 RVA: 0x00002C0E File Offset: 0x00000E0E
 protected virtual void OnMouseMove(MouseEventArgs e)
 {
     base.OnMouseMove(e);
     this.int_0 = GControl7.smethod_1(e);
     GControl7.smethod_0(this);
 }
Example #5
0
 // Token: 0x060001B0 RID: 432 RVA: 0x00002BF8 File Offset: 0x00000DF8
 protected virtual void OnMouseUp(MouseEventArgs e)
 {
     base.OnMouseUp(e);
     this.genum5_0 = GEnum5.Over;
     GControl7.smethod_0(this);
 }
Example #6
0
 // Token: 0x060001AF RID: 431 RVA: 0x00002BE2 File Offset: 0x00000DE2
 protected virtual void OnMouseLeave(EventArgs e)
 {
     base.OnMouseLeave(e);
     this.genum5_0 = GEnum5.None;
     GControl7.smethod_0(this);
 }