WInform记录的添加和显示
1、程序
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;namespace ComboBoxApp
{public partial class Form1 : Form{public Form1(){InitializeComponent();RecordInitialize();}#region 输入16进制数测试private void button1_Click(object sender, EventArgs e){string str = comboBox1.Text;Console.WriteLine(str);}private void comboBox1_KeyPress(object sender, KeyPressEventArgs e){ComboBox comboBox = sender as ComboBox;if ((e.KeyChar >= '0' && e.KeyChar <= '9') || (e.KeyChar >= 'a' && e.KeyChar <= 'f&