DotNet.AuthorizeServer/FormMain.cs

(开头部分) 28KB

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

using System;
using System.IO;
using System.Windows.Forms;
using System.Collections.Generic;
using NPOI.HSSF.UserModel;
using System.Xml;

namespace DotNet.AuthorizeServer
{
    public partial class FormMain : Form
    {
        #region 属性

        /// <summary>
        /// 注册码控件
        /// </summary>
        private DotNet.Authorize.TextBoxRegistCode textBoxRegistCode1;

        /// <summary>
        /// 导入的用户注册码原文件
        /// </summary>
        private string sourceXlsFile = string.Empty;

        /// <summary>
        /// 通用的委托(采用多线程技术,使用delegate和invoke来从其他线程中控制控件信息)
        /// </summary>
        internal delegate void CommonDelegate();

        /// <summary>
        /// 客户信息集合
        /// </summary>
        List<Customer> TCustomer = new List<Customer>();

        #endregion

        public FormMain()
        {
            InitializeComponent();
            this.textBoxRegistCode1 = new DotNet.Authorize.TextBoxRegistCode(DotNet.Authorize.RegistHelper.GetLocalRegCode());
            this.textBoxRegistCode1.Location = new System.Drawing.Point(84, 50);
            this.textBoxRegistCode1.Name = "textBoxRegistCode1";
            this.textBoxRegistCode1.TabIndex = 2;
            this.groupBox1.Controls.Add(this.textBoxRegistCode1);
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            //窗体加载时,显示DataGridView列名,以后不再执行这个方法
            InitializeDataGridViewColumn();
        }

        /// <summary>
        /// 如何注册激活的提示说明
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void pictureBoxHelpAuth_Click(object sender, EventArgs e)
        {
            MessageBox.Show(string.Format("1.请将客户的“注册码”填写在这里;{0}2.点击“生成”,生成激活码;{0}3.用户将激活码填写在软件里,进行激活使用。", Environment.NewLine), "操作提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }
后面还有 602 行代码,购买后查看完整代码

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

AI 解读 AI

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

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