FrmKeyCollection.cs
1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
using BLL;
using SmartScan.SetControl.WPF.Model;
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;
using static SmartScan.SetControl.WPF.Model.NeoAlertBox;
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)
{
string YU = BLLCommon.config.Language;
if (YU == "English")
{
bool result = NeoAlertBox.Show("", "No keyword selected!", AlertType.Warning, "NEO SCAN", true);
}
else if (YU == "日语")
{
bool result = NeoAlertBox.Show("", "キーワードが選択されていません!", AlertType.Warning, "NEO SCAN", true);
}
else
{
bool result = NeoAlertBox.Show("", "未选择关键字!", AlertType.Warning, "NEO SCAN", true);
}
return;
}
keyname = keyList.SelectedText;
this.DialogResult = DialogResult.OK;
this.Close();
}
}
}