示例#1
0
 // Token: 0x060002E4 RID: 740 RVA: 0x000085C8 File Offset: 0x000067C8
 public GControl15()
 {
     base.SetStyle(ControlStyles.UserPaint | ControlStyles.ResizeRedraw | ControlStyles.SupportsTransparentBackColor | ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, true);
     this.DoubleBuffered = true;
     GControl15.smethod_22(this, Color.Transparent);
     this.textBox_0 = GControl15.smethod_23();
     GControl15.smethod_10(this.textBox_0, GControl15.smethod_24("Segoe UI", 10f));
     GControl15.smethod_9(this.textBox_0, GControl15.smethod_14(this));
     GControl15.smethod_22(this.textBox_0, this.color_0);
     GControl15.smethod_25(this.textBox_0, this.color_1);
     GControl15.smethod_1(this.textBox_0, this.int_2);
     GControl15.smethod_4(this.textBox_0, this.bool_2);
     GControl15.smethod_2(this.textBox_0, this.bool_0);
     GControl15.smethod_3(this.textBox_0, this.bool_1);
     GControl15.smethod_26(this.textBox_0, BorderStyle.None);
     this.textBox_0.Location = new Point(5, 5);
     this.textBox_0.Width    = base.Width - 10;
     this.textBox_0.Cursor   = Cursors.IBeam;
     if (this.bool_2)
     {
         this.textBox_0.Height = base.Height - 11;
     }
     else
     {
         base.Height = this.textBox_0.Height + 11;
     }
     this.textBox_0.TextChanged += this.textBox_0_TextChanged;
     this.textBox_0.KeyDown     += this.textBox_0_KeyDown;
 }
示例#2
0
    // Token: 0x060002E5 RID: 741 RVA: 0x00008778 File Offset: 0x00006978
    protected virtual void OnPaint(PaintEventArgs e)
    {
        this.method_0();
        Bitmap   image_    = GControl15.smethod_28(GControl15.smethod_27(this), GControl15.smethod_5(this));
        Graphics graphics_ = GControl15.smethod_29(image_);

        this.int_0 = GControl15.smethod_27(this) - 1;
        this.int_1 = GControl15.smethod_5(this) - 1;
        Rectangle rectangle_ = new Rectangle(0, 0, this.int_0, this.int_1);

        GControl15.smethod_30(graphics_, SmoothingMode.HighQuality);
        GControl15.smethod_31(graphics_, PixelOffsetMode.HighQuality);
        GControl15.smethod_32(graphics_, TextRenderingHint.ClearTypeGridFit);
        GControl15.smethod_34(graphics_, GControl15.smethod_33(this));
        GControl15.smethod_22(this.textBox_0, this.color_0);
        GControl15.smethod_25(this.textBox_0, this.color_1);
        GControl15.smethod_36(graphics_, GControl15.smethod_35(this.color_0), rectangle_);
        base.OnPaint(e);
        GControl15.smethod_37(graphics_);
        GControl15.smethod_39(GControl15.smethod_38(e), InterpolationMode.HighQualityBicubic);
        GControl15.smethod_40(GControl15.smethod_38(e), image_, 0, 0);
        GControl15.smethod_41(image_);
    }