75 lines
2.8 KiB
C#
75 lines
2.8 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
|
|
namespace SOH.FenZhen.Client
|
|
{
|
|
public partial class FrmShowJiaohao : Form
|
|
{
|
|
public FrmShowJiaohao()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
SOH.FenZhen.Client.kstjMessage pdlb;
|
|
private void FrmShowJiaohao_Load(object sender, EventArgs e)
|
|
{
|
|
pdlb = (this.Owner as FrmJiaohao).pdOne;
|
|
}
|
|
|
|
|
|
private void FrmShowJiaohao_Paint(object sender, PaintEventArgs e)
|
|
{
|
|
//*淄博 老版本
|
|
|
|
//Graphics g = e.Graphics;
|
|
//Image img = Image.FromFile(Application.StartupPath + "\\fzbjt.jpg");
|
|
//Rectangle rect = new Rectangle(0, 0, 800, 600);
|
|
//g.DrawImage(img, rect);
|
|
//Font f = new Font("微软雅黑", 32, FontStyle.Bold);
|
|
////Font f1 = new Font("微软雅黑", 18, FontStyle.Bold);
|
|
|
|
//SizeF s = g.MeasureString(this.ksname, f);
|
|
//Point p = new Point((int)(268 - s.Width) / 2 + 152, 90);
|
|
//g.DrawString(ksname, f, Brushes.Blue, p);
|
|
//Font namef = new Font("隶书", 18, FontStyle.Bold);
|
|
//g.DrawString("请客人\r\n" + pdlb.xm + "进行科室检查", namef, Brushes.Red, new Point(432 , 200));
|
|
|
|
|
|
//*淄博 新版本
|
|
|
|
Graphics g = e.Graphics;
|
|
Image img = Image.FromFile(Application.StartupPath + "\\fzbjt.jpg");
|
|
Rectangle rect = new Rectangle(0, 0, 800, 600);
|
|
g.DrawImage(img, rect);
|
|
Font f = new Font("微软雅黑", 30, FontStyle.Bold);
|
|
//Font f1 = new Font("微软雅黑", 18, FontStyle.Bold);
|
|
|
|
SizeF s = g.MeasureString(this.ksname, f);
|
|
Point p = new Point((int)(268 - s.Width) / 2 + 152, 25);
|
|
g.DrawString(ksname, f, Brushes.Blue, p);
|
|
Font namef = new Font("隶书", 24, FontStyle.Bold);
|
|
g.DrawString("请客人\r\n" + pdlb.xm + "进行科室检查", namef, Brushes.Red, new Point(232, 200));
|
|
|
|
//*/
|
|
/*德州
|
|
Graphics g = e.Graphics;
|
|
Image img = Image.FromFile(Application.StartupPath + "\\fzbjt.jpg");
|
|
Rectangle rect = new Rectangle(0, 0, 1360, 768);
|
|
g.DrawImage(img, rect);
|
|
Font f = new Font("微软雅黑", 32, FontStyle.Bold);
|
|
|
|
SizeF s = g.MeasureString(this.ksname, f);
|
|
Point p = new Point((int)(366 - s.Width) / 2 + 309, 96);
|
|
g.DrawString(ksname, f, Brushes.Yellow, p);
|
|
Font namef = new Font("隶书", 24, FontStyle.Bold);
|
|
g.DrawString("请客人\r\n" + pdlb.xm + "进行科室检查", namef, Brushes.Red, new Point(856 + 20, 200));
|
|
*/
|
|
}
|
|
}
|
|
}
|