diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-01-17 13:32:58 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-01-17 13:32:58 +0200 |
| commit | 071dc67e905d23347ac6b5cc4573972d91dd0ea3 (patch) | |
| tree | 0410bf19ca3224767acb8a03e485808c04e5c360 /Software/Visual_Studio/VSIX/Tango.BuildExtensions/VSIXBase.cs | |
| parent | 92c52918e13dbbaf2a658945c349a6d04c29aa81 (diff) | |
| download | Tango-071dc67e905d23347ac6b5cc4573972d91dd0ea3.tar.gz Tango-071dc67e905d23347ac6b5cc4573972d91dd0ea3.zip | |
Upgraded EF from 6.0 to 6.2 for all projects.
Improved EF first load with pre-compiled views and model store.
Implemented auto generate views in Tango Build VSIX.
Diffstat (limited to 'Software/Visual_Studio/VSIX/Tango.BuildExtensions/VSIXBase.cs')
| -rw-r--r-- | Software/Visual_Studio/VSIX/Tango.BuildExtensions/VSIXBase.cs | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Software/Visual_Studio/VSIX/Tango.BuildExtensions/VSIXBase.cs b/Software/Visual_Studio/VSIX/Tango.BuildExtensions/VSIXBase.cs index 3957bbfdf..349962280 100644 --- a/Software/Visual_Studio/VSIX/Tango.BuildExtensions/VSIXBase.cs +++ b/Software/Visual_Studio/VSIX/Tango.BuildExtensions/VSIXBase.cs @@ -127,6 +127,43 @@ namespace Tango.BuildExtensions return assemblyPath; } + protected void SelectSolutionExplorerNode(string nodePath) + { + EnvDTE.UIHierarchyItem item; + + try + { + item = DTE.ToolWindows.SolutionExplorer.GetItem(nodePath); + item.Select(vsUISelectionType.vsUISelectionTypeSelect); + } + catch (Exception ex) + { + System.Windows.Forms.MessageBox.Show(ex.ToString()); + } + } + + protected void ExpandSolutionExplorerNode(string nodePath) + { + EnvDTE.UIHierarchyItem item; + + try + { + var explorer = DTE.ToolWindows.SolutionExplorer; + + item = explorer.GetItem(nodePath); + item.Select(vsUISelectionType.vsUISelectionTypeSelect); + + if (!item.UIHierarchyItems.Expanded) + { + explorer.DoDefaultAction(); + } + } + catch (Exception ex) + { + System.Windows.Forms.MessageBox.Show(ex.ToString()); + } + } + #endregion #region Notifications |
