public override void Visit(Class490 c) { }
 public abstract void Visit(Class490 c);
Example #3
0
        // Token: 0x0600218B RID: 8587 RVA: 0x00070218 File Offset: 0x0006E418
        protected override void OnPaint(PaintEventArgs e)
        {
            e.Graphics.SmoothingMode = SmoothingMode.HighQuality;
            if (this.bitmap_0 != null)
            {
                e.Graphics.DrawImage(this.bitmap_0, base.ClientRectangle);
                if (this.region_1 != null)
                {
                    using (SolidBrush solidBrush = new SolidBrush(this.color_4))
                    {
                        e.Graphics.FillRegion(solidBrush, this.region_1);
                    }
                    if (this.region_0 != null)
                    {
                        using (SolidBrush solidBrush2 = new SolidBrush(this.color_1))
                        {
                            e.Graphics.FillRegion(solidBrush2, this.region_0);
                        }
                        using (Pen pen = new Pen(Color.Red))
                        {
                            Rectangle rectangle = this.rectangle_0.smethod_24();
                            Point     pt        = new Point(rectangle.X, rectangle.Y);
                            Point     pt2       = new Point(pt.X + rectangle.Width, pt.Y);
                            Point     pt3       = new Point(pt.X, pt.Y + rectangle.Height);
                            Point     pt4       = new Point(pt2.X, pt2.Y + rectangle.Height);
                            e.Graphics.DrawLine(pen, new Point(this.rectangle_1.X, pt2.Y), pt2);
                            e.Graphics.DrawLine(pen, new Point(pt4.X, this.rectangle_1.Y), pt4);
                            e.Graphics.DrawLine(pen, pt3, new Point(this.rectangle_1.X + this.rectangle_1.Width, pt3.Y));
                            e.Graphics.DrawLine(pen, pt, new Point(pt.X, this.rectangle_1.Y + this.rectangle_1.Height));
                        }
                    }
                    using (Pen pen2 = new Pen(this.color_3, 2f))
                    {
                        e.Graphics.DrawRectangle(pen2, this.rectangle_1.smethod_3(2, 2).smethod_4(-1, -1));
                    }
                }
            }
            if (this.bool_0)
            {
                using (StringFormat stringFormat = new StringFormat())
                {
                    stringFormat.Alignment     = StringAlignment.Near;
                    stringFormat.LineAlignment = StringAlignment.Near;
                    for (int i = 0; i < Screen.AllScreens.Length; i++)
                    {
                        Screen    screen = Screen.AllScreens[i];
                        Rectangle r      = new Rectangle(screen.Bounds.X - SystemInformation.VirtualScreen.X, screen.Bounds.Y - SystemInformation.VirtualScreen.Y, screen.Bounds.Width, screen.Bounds.Height);
                        switch (this.enum124_0)
                        {
                        case Enum124.const_0:
                            Class490.smethod_1(e.Graphics, this.Font, this.MovableResizeMessage, 0.4f, r, this.CloseMessageTextColor, this.color_2, stringFormat);
                            break;

                        case Enum124.const_1:
                            Class490.smethod_1(e.Graphics, this.Font, this.MovableMessage, 0.4f, r, this.CloseMessageTextColor, this.color_2, stringFormat);
                            break;

                        case Enum124.const_2:
                            Class490.smethod_1(e.Graphics, this.Font, this.LockedMessage, 0.4f, r, this.CloseMessageTextColor, this.color_2, stringFormat);
                            break;
                        }
                    }
                    goto IL_557;
                }
            }
            using (StringFormat stringFormat2 = new StringFormat())
            {
                stringFormat2.Alignment     = StringAlignment.Near;
                stringFormat2.LineAlignment = StringAlignment.Near;
                stringFormat2.Trimming      = StringTrimming.None;
                stringFormat2.FormatFlags   = StringFormatFlags.NoClip;
                SizeF sizeF = SizeF.Empty;
                switch (this.enum124_0)
                {
                case Enum124.const_0:
                    sizeF = e.Graphics.MeasureString(this.MovableResizeMessage, this.Font, base.ClientSize, stringFormat2);
                    break;

                case Enum124.const_1:
                    sizeF = e.Graphics.MeasureString(this.MovableMessage, this.Font, base.ClientSize, stringFormat2);
                    break;

                case Enum124.const_2:
                    sizeF = e.Graphics.MeasureString(this.LockedMessage, this.Font, base.ClientSize, stringFormat2);
                    break;
                }
                if (sizeF.Width <= (float)base.ClientSize.Width && sizeF.Height <= (float)base.ClientSize.Height)
                {
                    switch (this.enum124_0)
                    {
                    case Enum124.const_0:
                        Class490.smethod_1(e.Graphics, this.Font, this.MovableResizeMessage, 0.4f, base.ClientRectangle, this.CloseMessageTextColor, this.color_2, stringFormat2);
                        break;

                    case Enum124.const_1:
                        Class490.smethod_1(e.Graphics, this.Font, this.MovableMessage, 0.4f, base.ClientRectangle, this.CloseMessageTextColor, this.color_2, stringFormat2);
                        break;

                    case Enum124.const_2:
                        Class490.smethod_1(e.Graphics, this.Font, this.LockedMessage, 0.4f, base.ClientRectangle, this.CloseMessageTextColor, this.color_2, stringFormat2);
                        break;
                    }
                }
            }
IL_557:
            base.OnPaint(e);
        }