示例#1
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);
        }
    }
示例#2
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();
    }