예제 #1
0
        void PrintProfileShort(Rectangle bounds, PrintPageEventArgs args)
        {
            this._printingProfile = false;
            SolidBrush   solidBrush = new SolidBrush(Color.Black);
            StringFormat format     = new StringFormat(StringFormatFlags.NoClip);

            format.Alignment     = StringAlignment.Near;
            format.LineAlignment = StringAlignment.Near;
            int vPos3 = Print.PpInfo(bounds, args);

            vPos3 += 6;
            string     s3 = MidsContext.Character.Alignment.ToString() + " Profile";
            RectangleF layoutRectangle = new RectangleF((float)(bounds.Left + 15), (float)vPos3, (float)bounds.Width, 15f);
            Font       font2           = new Font("Arial", 12f, FontStyle.Bold | FontStyle.Underline, GraphicsUnit.Pixel);

            args.Graphics.DrawString(s3, font2, solidBrush, layoutRectangle, format);
            vPos3 += 15;
            font2  = new Font("Arial", 12f, FontStyle.Bold, GraphicsUnit.Pixel);
            Print.BuildPowerListShort(ref vPos3, bounds, 12, true, false, false, args);
            s3 = "------------";
            layoutRectangle = new RectangleF((float)(bounds.Left + 15), (float)vPos3, (float)bounds.Width, 15f);
            args.Graphics.DrawString(s3, font2, solidBrush, layoutRectangle, format);
            vPos3 += 15;
            Print.BuildPowerListShort(ref vPos3, bounds, 12, false, true, false, args);
            if (MidsContext.Character.Archetype.Epic)
            {
                s3 = "------------";
                layoutRectangle = new RectangleF((float)(bounds.Left + 15), (float)vPos3, (float)bounds.Width, 15f);
                args.Graphics.DrawString(s3, font2, solidBrush, layoutRectangle, format);
                vPos3 += 15;
                Print.BuildPowerListShort(ref vPos3, bounds, 12, false, true, true, args);
            }
        }
예제 #2
0
        void PrintProfileShort(Rectangle bounds, PrintPageEventArgs args)

        {
            this._printingProfile = false;
            var solidBrush = new SolidBrush(Color.Black);
            var format     = new StringFormat(StringFormatFlags.NoClip)
            {
                Alignment     = StringAlignment.Near,
                LineAlignment = StringAlignment.Near
            };
            int  vPos  = Print.PpInfo(bounds, args) + 6;
            Font font1 = new Font("Arial", 12f, FontStyle.Bold | FontStyle.Underline, GraphicsUnit.Pixel);

            args.Graphics.DrawString(MidsContext.Character.Alignment.ToString() + " Profile", font1, solidBrush, new RectangleF(bounds.Left + 15, vPos, bounds.Width, 15f), format);
            vPos += 15;
            Font font2 = new Font("Arial", 12f, FontStyle.Bold, GraphicsUnit.Pixel);

            Print.BuildPowerListShort(ref vPos, bounds, 12, true, false, false, args);
            string s2 = "------------";

            args.Graphics.DrawString(s2, font2, solidBrush, new RectangleF((bounds.Left + 15), vPos, bounds.Width, 15f), format);
            vPos += 15;
            Print.BuildPowerListShort(ref vPos, bounds, 12, false, true, false, args);
            if (!MidsContext.Character.Archetype.Epic)
            {
                return;
            }
            string s3 = "------------";

            args.Graphics.DrawString(s3, font2, solidBrush, new RectangleF((bounds.Left + 15), vPos, bounds.Width, 15f), format);
            vPos += 15;
            Print.BuildPowerListShort(ref vPos, bounds, 12, false, true, true, args);
        }