public static AutomationDialog FromDte(VisualStudioApp app, string commandName, string commandArgs = "")
 {
     return(new AutomationDialog(
                app,
                AutomationElement.FromHandle(app.OpenDialogWithDteExecuteCommand(commandName, commandArgs))
                ));
 }
Beispiel #2
0
 public static ChooseLocationDialog FromDte(VisualStudioApp app)
 {
     return(new ChooseLocationDialog(
                app,
                AutomationElement.FromHandle(app.OpenDialogWithDteExecuteCommand("File.ProjectPickerMoveInto"))
                ));
 }
Beispiel #3
0
 public static ToolsOptionsDialog FromDte(VisualStudioApp app)
 {
     return(new ToolsOptionsDialog(
                app,
                AutomationElement.FromHandle(app.OpenDialogWithDteExecuteCommand("Tools.Options"))
                ));
 }
 public static CredentialsDialog PublishSelection(VisualStudioApp app)
 {
     return(new CredentialsDialog(
                app,
                AutomationElement.FromHandle(app.OpenDialogWithDteExecuteCommand("Build.PublishSelection"))
                ));
 }
 public static SaveDialog FromDte(VisualStudioApp app)
 {
     return(new SaveDialog(
                app,
                AutomationElement.FromHandle(app.OpenDialogWithDteExecuteCommand("File.SaveSelectedItemsAs"))
                ));
 }
 public static AddExistingItemDialog FromDte(VisualStudioApp app)
 {
     return(new AddExistingItemDialog(
                app,
                AutomationElement.FromHandle(app.OpenDialogWithDteExecuteCommand("Project.AddExistingItem"))
                ));
 }
Beispiel #7
0
 public static SelectFolderDialog AddFolderToSearchPath(VisualStudioApp app)
 {
     return(new SelectFolderDialog(
                app,
                AutomationElement.FromHandle(app.OpenDialogWithDteExecuteCommand("Project.AddSearchPathFolder"))
                ));
 }
        public static AzureCloudServicePublishDialog FromDte(VisualStudioApp app)
        {
            var publishDialogHandle = app.OpenDialogWithDteExecuteCommand("Build.PublishSelection");

            return(new AzureCloudServicePublishDialog(app, AutomationElement.FromHandle(publishDialogHandle)));
        }
 public static RemoveItemDialog FromDte(VisualStudioApp app)
 {
     return(new RemoveItemDialog(app, AutomationElement.FromHandle(app.OpenDialogWithDteExecuteCommand("Edit.Delete"))));
 }