Created
May 21, 2014 13:47
-
-
Save adalon/b5bbb7a84b14b9b88099 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int AddNew() | |
{ | |
IVsAddProjectItemDlg addItemDialog; | |
string strFilter = String.Empty; | |
string location = string.Empty; | |
int iDontShowAgain; | |
IVsProject3 project = this.parent.Project.ToDteProject().ToVsProject(); | |
addItemDialog = this.Parent.Project.GetService<IVsAddProjectItemDlg>(); | |
uint uiFlags = (uint)(__VSADDITEMFLAGS.VSADDITEM_AddNewItems | __VSADDITEMFLAGS.VSADDITEM_SuggestTemplateName | __VSADDITEMFLAGS.VSADDITEM_AllowHiddenTreeView); | |
Guid projectGuid = GuidList.guidMonoTouchProjectTypeGuid; | |
addItemDialog.AddProjectItemDlg( | |
VSConstants.VSITEMID_ROOT, | |
ref projectGuid, | |
project, | |
uiFlags, | |
"Code", | |
"Asset Catalog", | |
ref location, | |
ref strFilter, | |
out iDontShowAgain); | |
return VSConstants.S_OK; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment