예제 #1
0
    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;
        }
    }
예제 #2
0
파일: Upload.cs 프로젝트: suifengsigan/CMM
        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;
            }
        }