1、页面
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Threading;
using Microsoft.Win32;
using Business;
namespace OrderGasChargeManage
{
public partial class RegForm : Form
{
public RegForm()
{
InitializeComponent();
}
//窗体加载
private void RegForm_Load(object sender, EventArgs e)
{
SoftReg redHardware = new SoftReg();
machineCode.Text = redHardware.getMacNum();
}
private void btnZhuce_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(regCode.Text.Trim())||regCode.Text.Trim().Length<24)