123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- 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 HCTools
- {
- public partial class InstDOM : Form
- {
- public InstDOM()
- {
- InitializeComponent();
- }
-
- private void button_choose1_Click(object sender, EventArgs e)
- {
- FolderBrowserDialog open = new FolderBrowserDialog();
- open.Description = "请选择文件夹";
- if (open.ShowDialog() == System.Windows.Forms.DialogResult.OK)
- textBox_dom.Text = open.SelectedPath;
- }
-
- private void button_choose2_Click(object sender, EventArgs e)
- {
- FolderBrowserDialog open = new FolderBrowserDialog();
- open.Description = "请选择文件夹";
- if (open.ShowDialog() == System.Windows.Forms.DialogResult.OK)
- textBox_dwg.Text = open.SelectedPath;
- }
-
- private void button_ok_Click(object sender, EventArgs e)
- {
- InsertDOM.dompath = textBox_dom.Text.ToString();
- InsertDOM.dwgpath = textBox_dwg.Text.ToString();
- InsertDOM instdom = new InsertDOM();
- instdom.InsertDOMToCAD();
- this.Close();
- }
- }
- }
|