private bool TryGetInitialPath(SqlCeToolboxPackage package, out string path)
        {
            var dteHelper = new EnvDteHelper();

            try
            {
                path = dteHelper.GetInitialFolder();
                return(true);
            }
            catch
            {
                path = null;
                return(false);
            }
        }
示例#2
0
        private bool TryGetInitialPath(SqlCeToolboxPackage package, out string path)
        {
            var dte       = package.GetServiceHelper(typeof(DTE)) as DTE2;
            var dteHelper = new EnvDteHelper();

            try
            {
                path = dteHelper.GetInitialFolder(dte);
                return(true);
            }
            catch
            {
                path = null;
                return(false);
            }
        }