FrmKeyCollection.cs
944 字节
using BLL;
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 SmartScan.PlusSettingFrm
{
public partial class FrmKeyCollection : Asa.FaceControl.FaceFormFixed
{
public string keyname = null;
public FrmKeyCollection()
{
InitializeComponent();
keyList.Items.AddRange(BLLCommon.macroKey.ToArray());
keyList.SelectedIndex = 0;
}
private void faceButton1_Click(object sender, EventArgs e)
{
if (keyList.SelectedIndex==-1)
{
MessageBox.Show("请选择关键字!");
return;
}
keyname = keyList.SelectedText;
this.DialogResult = DialogResult.OK;
this.Close();
}
}
}