CyManager/BaoBiaoQT0205.cs

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Printing;
using System.IO;
using System.Text;
using System.Windows.Forms;
using BLL;

namespace CyManager
{
    public partial class BaoBiaoQT0205 : Form
    {
        private PrintPreviewDialog ppd = new PrintPreviewDialog();
        private PrintDialog pdg = new PrintDialog();
        private PrintDocument pd = new PrintDocument();
        private PageSetupDialog psd = new PageSetupDialog();
        Brush bsh = Brushes.Black;
        string zdid = "";
        string zdshou = "";
        string zdzhao = "";
        public BaoBiaoQT0205()
        {
            InitializeComponent();
            pd.PrintPage += new PrintPageEventHandler(pd_PrintPage);
            pdg.Document = pd;
            //pd.OriginAtMargins = true;
            //ppd.UseAntiAlias = true;
            ppd.Document = pd;
        }

        public BaoBiaoQT0205(string id, string shou, string zhao)
        {
            zdid = id;
            zdzhao = zhao;
            zdshou = shou;
            InitializeComponent();
            pd.PrintPage += new PrintPageEventHandler(pd_PrintPage);
            pdg.Document = pd;
            //pd.OriginAtMargins = true;
            //ppd.UseAntiAlias = true;
            ppd.Document = pd;
        }
        private void pd_PrintPage(object sender, PrintPageEventArgs e)
        {
            Font fnt = textBox1.Font;
            Graphics g = e.Graphics;
            long rowheight = textBox1.Font.Height;  //行距
            for (int i = 0; i < textBox1.Lines.Length; i++)
            {
                g.DrawString(textBox1.Lines[i], fnt, bsh, 3, 10 + rowheight);
                rowheight += textBox1.Font.Height;
            }
            g.Dispose();
        }

        private void button4_Click(object sender, EventArgs e)
        {
后面还有 94 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。