프로젝트

일반

사용자정보

통계
| 브랜치(Branch): | 개정판:

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
}
클립보드 이미지 추가 (최대 크기: 500 MB)