개정판 96a2080c
dev issue #000 : edit form and wrapper
Change-Id: I607ead2f26b9eb53f7d544171da3c7cd14c2974f
DTI_PID/SPPIDConverter_DialogBarWrapper/SPPIDConverterWrapper.cs | ||
---|---|---|
132 | 132 |
//string wrapperDllPath = ID2.GetValue("Path").ToString() + @"Converter\SPPIDConverter_Wrapper.dll"; |
133 | 133 |
//string wrapperDllPath = System.Reflection.Assembly.GetExecutingAssembly().Location; |
134 | 134 |
string wrapperDllPath = @"Z:\HanKyouHo\Source\DTIPID\DTI_PID\SPPIDConverterDll\SPPIDConverter_Wrapper.dll"; |
135 |
|
|
136 |
#region DialogBar Setting |
|
137 |
try |
|
138 |
{ |
|
139 |
bool bExist = false; |
|
140 |
foreach (DialogBar dialogBar in application.DialogBars) |
|
141 |
{ |
|
142 |
if (dialogBar.Name == DialogBarName) |
|
143 |
{ |
|
144 |
bExist = true; |
|
145 |
dialogBar.Delete(); |
|
146 |
break; |
|
147 |
} |
|
148 |
} |
|
149 |
if (!bExist) |
|
150 |
{ |
|
151 |
DialogBar dlgBar = application.DialogBars.Add(DialogBarName, DockingFlagsConstants.igDockableOnLeft, DockingLocationConstants.igDockOnLeft, |
|
152 |
DialogBarStyleConstants.igDialogBarStyleShowCaption | DialogBarStyleConstants.igDialogBarStyleStretchToFitHorizontal | DialogBarStyleConstants.igDialogBarStyleStretchToFitVertical | DialogBarStyleConstants.igDialogBarStyleNoBorder , 0, 0); |
|
153 |
//DialogbarControl dialogBarControl_UserControl = dlgBar.Controls.AddManaged(wrapperDllPath, "SPPIDConverter_AutoModeling.MainControl", 733, 900); |
|
154 |
//DialogbarControl dialogBarControl_UserControl = dlgBar.Controls.AddManaged(wrapperDllPath, "Converter.SPPID.DialogBarWrapper.EmptyControl", 0, 0); |
|
155 |
|
|
156 |
//dynamic userControl = dialogBarControl_UserControl.ControlDispatch; |
|
157 |
//Control control = userControl as Control; |
|
158 |
} |
|
159 |
} |
|
160 |
catch (Exception ex) |
|
161 |
{ |
|
162 |
|
|
163 |
} |
|
164 |
#endregion |
|
135 |
string autoModelingDllPath = @"Z:\HanKyouHo\Source\DTIPID\DTI_PID\SPPIDConverterDll\SPPIDConverter_AutoModeling.dll"; |
|
165 | 136 |
|
166 | 137 |
#region Set ToolBar and Menu |
167 | 138 |
ToolBars toolBars = application.ToolBars; |
... | ... | |
232 | 203 |
} |
233 | 204 |
|
234 | 205 |
#endregion |
206 |
|
|
207 |
#region DialogBar Setting |
|
208 |
try |
|
209 |
{ |
|
210 |
foreach (DialogBar dialogBar in application.DialogBars) |
|
211 |
{ |
|
212 |
if (dialogBar.Name == DialogBarName) |
|
213 |
{ |
|
214 |
dialogBar.Delete(); |
|
215 |
break; |
|
216 |
} |
|
217 |
} |
|
218 |
DialogBar dlgBar = application.DialogBars.Add(DialogBarName, DockingFlagsConstants.igDockableOnLeft, DockingLocationConstants.igDockOnLeft, |
|
219 |
DialogBarStyleConstants.igDialogBarStyleShowCaption | DialogBarStyleConstants.igDialogBarStyleStretchToFitHorizontal | DialogBarStyleConstants.igDialogBarStyleStretchToFitVertical | DialogBarStyleConstants.igDialogBarStyleNoBorder, 0, 0); |
|
220 |
//DialogbarControl dialogBarControl_UserControl = dlgBar.Controls.AddManaged(wrapperDllPath, "SPPIDConverter_AutoModeling.MainControl", 733, 900); |
|
221 |
DialogbarControl dialogBarControl_UserControl = dlgBar.Controls.AddManaged(autoModelingDllPath, "Converter.SPPID.AutoModeling.MainWrapper", 0, 0); |
|
222 |
dynamic userControl = dialogBarControl_UserControl.ControlDispatch; |
|
223 |
userControl.ShowDialog(); |
|
224 |
//Control control = userControl as Control; |
|
225 |
} |
|
226 |
catch (Exception ex) |
|
227 |
{ |
|
228 |
|
|
229 |
} |
|
230 |
#endregion |
|
231 |
|
|
232 |
|
|
235 | 233 |
} |
236 | 234 |
} |
237 | 235 |
else |
내보내기 Unified diff