/// <summary> /// Clicks the "Cancel" button and waits for the related Code Action to complete. /// </summary> public void ClickCancel() { DialogHelpers.PressButtonWithName(GetMainWindowHWnd(), GenerateTypeDialogID, "Cancel"); VisualStudioInstance.VisualStudioWorkspace.WaitForAsyncOperations(FeatureAttribute.LightBulb); }
/// <summary> /// Clicks the "OK" button and waits for the related Code Action to complete. /// </summary> public void ClickOK() { DialogHelpers.PressButtonWithName(GetMainWindowHWnd(), GenerateTypeDialogID, "OK"); VisualStudioInstance.Workspace.WaitForAsyncOperations(Helper.HangMitigatingTimeout, FeatureAttribute.LightBulb); }