using System;
|
using System.Collections.Generic;
|
using System.ComponentModel;
|
using System.Data;
|
using System.Drawing;
|
using System.Linq;
|
using System.Text;
|
using System.Windows.Forms;
|
|
namespace TEWin
|
{
|
public partial class FrmTool : Form
|
{
|
FrmWin win;
|
|
public FrmTool(FrmWin win)
|
{
|
this.win = win;
|
InitializeComponent();
|
}
|
|
private void btnTest_Click(object sender, EventArgs e)
|
{
|
string str = this.txtCode.Text.Trim().Replace("0x", "");
|
if (string.IsNullOrWhiteSpace(str)) return;
|
|
|
int code = Convert.ToInt32(str, 16);
|
|
win.InvokeProc(code);
|
}
|
}
|
}
|