private bool TryGetInitialPath(SqlCeToolboxPackage package, out string path) { var dteHelper = new EnvDteHelper(); try { path = dteHelper.GetInitialFolder(); return(true); } catch { path = null; return(false); } }
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); } }