本文整理汇总了C#中VisualStudioApp.OpenDialogWithDteExecuteCommand方法的典型用法代码示例。如果您正苦于以下问题:C# VisualStudioApp.OpenDialogWithDteExecuteCommand方法的具体用法?C# VisualStudioApp.OpenDialogWithDteExecuteCommand怎么用?C# VisualStudioApp.OpenDialogWithDteExecuteCommand使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类VisualStudioApp
的用法示例。
在下文中一共展示了VisualStudioApp.OpenDialogWithDteExecuteCommand方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FromDte
public static NewAppDialog FromDte(VisualStudioApp app) {
return new NewAppDialog(
app,
AutomationElement.FromHandle(
app.OpenDialogWithDteExecuteCommand("ProjectandSolutionContextMenus.Project.Add.Djangoapp")
)
);
}
示例2: AddFolderToSearchPath
public static SelectFolderDialog AddFolderToSearchPath(VisualStudioApp app) {
return new SelectFolderDialog(
app,
AutomationElement.FromHandle(app.OpenDialogWithDteExecuteCommand("Project.AddSearchPathFolder"))
);
}
示例3: FromDte
public static NewItemDialog FromDte(VisualStudioApp app) {
return new NewItemDialog(
app,
AutomationElement.FromHandle(app.OpenDialogWithDteExecuteCommand("Project.AddNewItem"))
);
}
示例4: FromDte
public static AutomationDialog FromDte(VisualStudioApp app, string commandName, string commandArgs = "") {
return new AutomationDialog(
app,
AutomationElement.FromHandle(app.OpenDialogWithDteExecuteCommand(commandName, commandArgs))
);
}
示例5: FromDte
public static ToolsOptionsDialog FromDte(VisualStudioApp app) {
return new ToolsOptionsDialog(
app,
AutomationElement.FromHandle(app.OpenDialogWithDteExecuteCommand("Tools.Options"))
);
}
示例6: FromDte
public static ChooseLocationDialog FromDte(VisualStudioApp app) {
return new ChooseLocationDialog(
app,
AutomationElement.FromHandle(app.OpenDialogWithDteExecuteCommand("File.ProjectPickerMoveInto"))
);
}
示例7: FromDte
public static AzureCloudServicePublishDialog FromDte(VisualStudioApp app) {
var publishDialogHandle = app.OpenDialogWithDteExecuteCommand("Build.PublishSelection");
return new AzureCloudServicePublishDialog(app, AutomationElement.FromHandle(publishDialogHandle));
}
示例8: PublishSelection
public static CredentialsDialog PublishSelection(VisualStudioApp app) {
return new CredentialsDialog(
app,
AutomationElement.FromHandle(app.OpenDialogWithDteExecuteCommand("Build.PublishSelection"))
);
}
示例9: FromDte
public static SaveDialog FromDte(VisualStudioApp app) {
return new SaveDialog(
app,
AutomationElement.FromHandle(app.OpenDialogWithDteExecuteCommand("File.SaveSelectedItemsAs"))
);
}
示例10: FromDte
public static RemoveItemDialog FromDte(VisualStudioApp app) {
return new RemoveItemDialog(app, AutomationElement.FromHandle(app.OpenDialogWithDteExecuteCommand("Edit.Delete")));
}