Beispiel #1
0
        protected override int QueryClose(out bool canClose)
        {
            ThreadHelper.ThrowIfNotOnUIThread();

            try
            {
                if (GeneralOptions.Instance.EnableAutoHide)
                {
                    var dte = GetService(typeof(DTE)) as DTE2;
                    DockHelpers.DockToolWindows(dte);
                }
            }
            catch (Exception ex)
            {
                ex.LogAsync().ConfigureAwait(false);
            }

            return(base.QueryClose(out canClose));
        }
Beispiel #2
0
        protected override int QueryClose(out bool canClose)
        {
            ThreadHelper.ThrowIfNotOnUIThread();

            try
            {
                if (GeneralOptions.Instance.EnableAutoHide)
                {
                    var dte = GetService(typeof(DTE)) as DTE2;
                    DockHelpers.DockToolWindows(dte);
                }
            }
            catch (Exception ex)
            {
                VsShellUtilities.LogError(ex.Source, ex.ToString());
            }

            return(base.QueryClose(out canClose));
        }