CyManager/Print/print.cs

(开头部分) 17KB

这里只显示每个文件的开头 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 Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace Print
{
    public partial class print : Form
    {
        


          PrintDocument printdocument = new PrintDocument();
        PrintPreviewDialog printpreviewdialog = new PrintPreviewDialog();
        public print()
        {
            InitializeComponent();
            this.gtempItemList.ItemList = new List<PrintItem>();
            this.gtempItemList.arryname = new List<PrintItem>();
            this.gtempItemList.pays = new List<PrintItem>();
            this.Font = new Font(Common.gDisfontName, (float)Common.gsize);
             
            // base.Icon = Resources.logmanage;

            printdocument.PrintPage += new PrintPageEventHandler(printdocument_PrintPage);

        }

        private Struct gtempItemList = default(Struct);
        private int gsize = Common.gsize;
        private string gfontName ="";
        private int widthPaper = 320;
        private Graphics formGraphics;
        private SolidBrush drawBrush;
        private float x;
        private float y = 10f;

      private  Graphics g;

        private void printdocument_PrintPage(object sender, PrintPageEventArgs e)
        {  


            this.x = 0f;
            this.y = 10f;

            this.formGraphics = e.Graphics;
            //formGraphics.DrawImage(im,80,80);
            // formGraphics.DrawImage(pictureBox1.Image, 100, 100);
            this.drawBrush = new SolidBrush(Color.Black);
            for (int i = 0; i < this.gtempItemList.ItemList.Count; i++)
            {
                if (this.gtempItemList.ItemList[i].arryName != null && this.gtempItemList.ItemList[i].arryName.Length > 0)
后面还有 374 行代码,购买后查看完整代码

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

AI 解读 AI

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

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