프로젝트

일반

사용자정보

개정판 e3e2d41f

IDe3e2d41f2391172f01f5b0e428ce2ef8715dc6ad
상위 a0c69b1c
하위 d19ae675

gaqhf 이(가) 5년 이상 전에 추가함

dev issue #000 : 프로젝트, 솔루션 정리

Change-Id: I65159931f58c1c057e4ebdc4b7d4ea225e628ae5

차이점 보기:

DTI_PID/SPPIDConverter_DialogBarWrapper/ConverterDocking.cs
9 9
using System.Windows.Forms;
10 10
using System.Threading;
11 11
using Microsoft.VisualBasic;
12
using Ingr.RAD2D;
12 13

  
13 14
namespace Converter.SPPID.Wrapper
14 15
{
15 16
    public partial class ConverterDocking : UserControl
16 17
    {
18
        Ingr.RAD2D.Application radApp;
17 19
        public ConverterDocking()
18 20
        {
19 21
            InitializeComponent();
22
            dynamic application = Interaction.GetObject("", "PIDAutomation.Application");
23
            WrapperApplication wApp = new WrapperApplication(application.Application);
24
            radApp = wApp.RADApplication;
20 25
        }
21 26

  
22
        private void simpleButton1_Click(object sender, EventArgs e)
27
        private void btnConverter_Click(object sender, EventArgs e)
23 28
        {
24 29
            try
25 30
            {
26
                //dynamic application = Interaction.GetObject("", "PIDAutomation.Application");
27
                //application.RunMacro(@"Z:\HanKyouHo\Source\DTIPID\DTI_PID\SPPIDConverterDll\SPPIDConverter_Wrapper.dll");
28
                //Ingr.RAD2D.Interop.RAD2D.Application app;
31
                radApp.RunManagedMacro(SPPIDConverterWrapper.autoModelingDllPath, "Converter.SPPID.SPPIDConverter_AutoModeling");
29 32
            }
30 33
            catch (Exception ex)
31 34
            {
32 35
                MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace);
33 36
            }
34 37
        }
38

  
39

  
35 40
    }
36 41
}

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)