public static void Main() { CheckRegionsUI theCheckRegionsUI = null; try { theCheckRegionsUI = new CheckRegionsUI(); theCheckRegionsUI.Show(); } catch (Exception ex) { theUI.NXMessageBox.Show("Block Styler", NXMessageBox.DialogType.Error, ex.ToString()); } finally { if (theCheckRegionsUI != null) { theCheckRegionsUI.Dispose(); } theCheckRegionsUI = null; } }
private static void Show() { CheckRegionsUI theCheckRegions = null; try { theCheckRegions = new CheckRegionsUI(); theCheckRegions.Show(); } catch (Exception ex) { NXOpen.UI.GetUI().NXMessageBox.Show("Block Styler", NXOpen.NXMessageBox.DialogType.Error, ex.ToString()); } finally { if (theCheckRegions != null) { theCheckRegions.Dispose(); } theCheckRegions = null; } }