CyManager/Print/PrintView.cs
(开头部分) 13KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Text;
using System.Windows.Forms;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Print.Properties;
namespace Print
{
public partial class PrintView : Form
{
public PrintView()
{
InitializeComponent();
this.WindowState = FormWindowState.Minimized;
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);
this.Text = Resources.printview_title;
// base.Icon = Resources.logmanage;
}
private Struct gtempItemList = default(Struct);
private int gsize = Common.gsize;
private string gfontName = Resources.str_gdisfont;
private int widthPaper = 320;
private Graphics formGraphics;
private SolidBrush drawBrush;
private float x;
private float y = 10f;
public void SetParam(int paperWidth, string tplFile)
{
this.gtempItemList.fileName = tplFile;
base.Width = (int)((float)paperWidth * Common.gExpandNum + 16f);
this.widthPaper = (int)((float)paperWidth * Common.gExpandNum);
this.gtempItemList.ItemList.Clear();
this.gtempItemList.arryname.Clear();
this.gtempItemList.pays.Clear();
this.gtempItemList.width = paperWidth;
using (StreamReader streamReader = new StreamReader(tplFile, Encoding.GetEncoding("GB2312")))
{
try
{
new JsonSerializer();
JsonTextReader reader = new JsonTextReader(streamReader);
JObject jObject = JObject.Load(reader);
JToken jToken = jObject["general"];
foreach (JToken current in (IEnumerable<JToken>)jToken)
{
PrintItem item = default(PrintItem);
后面还有 266 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。