hytos / DTI_PID / SPPIDConverter / MainWrapper.cs @ af63e77a
이력 | 보기 | 이력해설 | 다운로드 (958 Bytes)
1 |
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 |
using Converter.SPPID.Model; |
11 |
|
12 |
namespace Converter.SPPID |
13 |
{ |
14 |
public partial class MainWrapper : UserControl |
15 |
{ |
16 |
public MainWrapper() |
17 |
{ |
18 |
InitializeComponent(); |
19 |
} |
20 |
|
21 |
public void ShowDialog() |
22 |
{ |
23 |
ConverterForm form = new ConverterForm(); |
24 |
if (form.ShowDialog() == DialogResult.OK) |
25 |
{ |
26 |
List<SPPID_Document> documents = form.Documents; |
27 |
//dynamic application = Interaction.GetObject("", "PIDAutomation.Application"); |
28 |
//dynamic newDrawing = application.Drawings.Add(sUnit, sTemplate, sDrawingNumber, sDrawingName); |
29 |
|
30 |
MessageBox.Show(documents.Count.ToString() + "new"); |
31 |
} |
32 |
} |
33 |
} |
34 |
} |