choujiangView.cs

(开头部分) 4KB

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

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

namespace choujiang
{
    public partial class choujiangView : Form
    {
        #region 声明变量
        //
        private string[] strname;
        //
        #endregion
        #region 构造函数
        public choujiangView()
        {
            InitializeComponent();
            this.printDocument1.OriginAtMargins = true;//启用页边距
            this.pageSetupDialog1.EnableMetric = true; //以毫米为单位
            this.pageSetupDialog1.AllowMargins = true;
        }
        public choujiangView(string[] stname)
        {
            InitializeComponent();
            strname = stname;
            this.printDocument1.OriginAtMargins = true;//启用页边距
            this.pageSetupDialog1.EnableMetric = true; //以毫米为单位
            this.pageSetupDialog1.AllowMargins = true;
        }
        #endregion
        #region 窗体 load加载事件
        private void choujiangView_Load(object sender, EventArgs e)
        {
            //获取或设置一个值,该值指示是否发送到文件或端口 
            printDocument1.PrinterSettings.PrintToFile = true;
            //设置打印时横向还是纵向 
            printDocument1.DefaultPageSettings.Landscape = true;
            //设置打印页边距
            printDocument1.DefaultPageSettings.Margins = new System.Drawing.Printing.Margins(0, 0, 0, 0);

            if (strname.Length <= 10)
            {
                this.list_2.Visible = false;
                this.list_1.Left = this.panel1.Width / 2 - this.list_1.Width / 2;
            }
            for (int i = 0; i < strname.Length; i++)
            {
                if (i < 10)
                {
                    this.list_1.Items.Add(strname[i].ToString());
                }
                else {
                    this.list_2.Items.Add(strname[i].ToString());                    
                }
            }
        }
后面还有 81 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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