개정판 c4d079c4
dev issue #000 : backup
Change-Id: I29c8129b4d6bebeccb127ded198909213141f563
DTI_PID/SPPIDConverter_DialogBarWrapper/SPPIDConverterWrapper.cs | ||
---|---|---|
138 | 138 |
autoModelingDllPath = @"Z:\HanKyouHo\Source\DTIPID\DTI_PID\SPPIDConverterDll\SPPIDConverter.dll"; |
139 | 139 |
#endif |
140 | 140 |
|
141 |
|
|
142 | 141 |
#region Set ToolBar and Menu |
143 | 142 |
ToolBars toolBars = application.ToolBars; |
144 | 143 |
//application.ActiveDocument.SelectSet.GetEnumerator(); |
... | ... | |
196 | 195 |
break; |
197 | 196 |
} |
198 | 197 |
} |
199 |
|
|
200 | 198 |
} |
201 | 199 |
foreach (Ingr.RAD2D.Menu menu in menus) |
202 | 200 |
{ |
... | ... | |
209 | 207 |
|
210 | 208 |
#endregion |
211 | 209 |
|
210 |
#region Add Docking |
|
211 |
//try |
|
212 |
//{ |
|
213 |
// bool bExist = false; |
|
214 |
// foreach (DialogBar dialogBar in application.DialogBars) |
|
215 |
// { |
|
216 |
// if (dialogBar.Name == DialogBarName) |
|
217 |
// { |
|
218 |
// bExist = true; |
|
219 |
// dialogBar.Delete(); |
|
220 |
// break; |
|
221 |
// } |
|
222 |
// } |
|
223 |
// if (!bExist) |
|
224 |
// { |
|
225 |
// DialogBar dlgBar = application.DialogBars.Add(DialogBarName, DockingFlagsConstants.igDockableOnLeft, DockingLocationConstants.igDockOnLeft, |
|
226 |
// DialogBarStyleConstants.igDialogBarStyleShowCaption | DialogBarStyleConstants.igDialogBarStyleStretchToFitHorizontal | DialogBarStyleConstants.igDialogBarStyleStretchToFitVertical | DialogBarStyleConstants.igDialogBarStyleNoBorder, 0, 0); |
|
227 |
// DialogbarControl dialogBarControl_UserControl = dlgBar.Controls.AddManaged(wrapperDllPath, "Converter.SPPID.Wrapper.ConverterDocking", 150, 300); |
|
228 |
// } |
|
229 |
//} |
|
230 |
//catch (Exception ex) |
|
231 |
//{ |
|
212 | 232 |
|
233 |
//} |
|
234 |
|
|
235 |
#endregion |
|
236 |
//bool test =commandControl.Application.RADApplication.AddManagedMacroCommand(15000, autoModelingDllPath, "Converter.SPPID.SPPIDConverter_AutoModeling", true, CommandTypeConstants.igCmdTypeAlways, ""); |
|
213 | 237 |
commandControl.Application.RADApplication.RunManagedMacro(autoModelingDllPath, "Converter.SPPID.SPPIDConverter_AutoModeling"); |
214 | 238 |
} |
215 | 239 |
} |
내보내기 Unified diff