개정판 e3e2d41f
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