hytos / DTI_PID / APIDConverter / APIDConverterExplorer.cs @ 128c844f
이력 | 보기 | 이력해설 | 다운로드 (1.17 KB)
1 | 88cb9898 | gaqhf | using System; |
---|---|---|---|
2 | using System.Collections.Generic; |
||
3 | using System.ComponentModel; |
||
4 | using System.Drawing; |
||
5 | using System.Data; |
||
6 | using System.Linq; |
||
7 | using System.Text; |
||
8 | using System.Threading.Tasks; |
||
9 | using System.Windows.Forms; |
||
10 | |||
11 | 09a2e00c | gaqhf | using AcadApp = Autodesk.AutoCAD.ApplicationServices.Application; |
12 | using AVEVA.PID.CustomizationUtility.DB; |
||
13 | using AVEVA.PID.CustomizationUtility.Model; |
||
14 | using AVEVA.PID.CustomizationUtility.Properties; |
||
15 | |||
16 | 88cb9898 | gaqhf | namespace AVEVA.PID.CustomizationUtility |
17 | { |
||
18 | public partial class APIDConverterExplorer : UserControl |
||
19 | { |
||
20 | public APIDConverterExplorer() |
||
21 | { |
||
22 | InitializeComponent(); |
||
23 | } |
||
24 | 09a2e00c | gaqhf | |
25 | private void btnOpenConverter_Click(object sender, EventArgs e) |
||
26 | { |
||
27 | APIDConverter form = new APIDConverter(); |
||
28 | if (AcadApp.ShowModalDialog(form) == DialogResult.OK) |
||
29 | { |
||
30 | 14540282 | gaqhf | foreach (var item in form.Documents) |
31 | { |
||
32 | AutoModeling autoModeling = new AutoModeling(item); |
||
33 | 1c5bd296 | gaqhf | autoModeling.CreateDrawing(); |
34 | 14540282 | gaqhf | } |
35 | 73152510 | gaqhf | |
36 | MessageBox.Show("End Conversion", "APID Converter", MessageBoxButtons.OK, MessageBoxIcon.Information); |
||
37 | 09a2e00c | gaqhf | } |
38 | } |
||
39 | 88cb9898 | gaqhf | } |
40 | } |