/// <summary> /// Shows the form as a modal dialog box with the application main window as the owner. /// </summary> public static DialogResult ShowDialog(this SolidEdgeFramework.Application application, CommonDialog dialog) { if (dialog == null) { throw new ArgumentNullException("dialog"); } return(dialog.ShowDialog(application.GetNativeWindow())); }
/// <summary> /// Shows the form as a modal dialog box with the application main window as the owner. /// </summary> public static DialogResult ShowDialog(this SolidEdgeFramework.Application application, System.Windows.Forms.Form form) { if (form == null) { throw new ArgumentNullException("form"); } return(form.ShowDialog(application.GetNativeWindow())); }
/// <summary> /// Shows the form with the application main window as the owner. /// </summary> public static void Show(this SolidEdgeFramework.Application application, System.Windows.Forms.Form form) { if (form == null) { throw new ArgumentNullException("form"); } form.Show(application.GetNativeWindow()); }