Ejemplo n.º 1
0
        public HResult Open()
        {
            try
            {
                if (IsToolsOptionsOpen)
                {
                    return(HResult.False);
                }

                IsToolsOptionsOpen = true;

                try
                {
                    using (var form = new ToolsOptionsForm())
                    {
                        form.ShowDialog(this);
                    }
                }
                finally
                {
                    IsToolsOptionsOpen = false;
                }

                return(HResult.OK);
            }
            catch (Exception ex)
            {
                return(ErrorUtil.GetHResult(ex));
            }
        }
Ejemplo n.º 2
0
        public HResult Open()
        {
            try
            {
                if (IsToolsOptionsOpen)
                    return HResult.False;

                IsToolsOptionsOpen = true;

                try
                {
                    using (var form = new ToolsOptionsForm())
                    {
                        form.ShowDialog(this);
                    }
                }
                finally
                {
                    IsToolsOptionsOpen = false;
                }

                return HResult.OK;
            }
            catch (Exception ex)
            {
                return ErrorUtil.GetHResult(ex);
            }
        }