管道基础大数据平台系统开发-【CS】-ExportMap
13693261870
2024-01-02 137e1aba5c31b24df51d801814c413c752c0d637
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
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);
        }
    }
}