You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Ownership of the RemoteUserControl is transferred to Visual Studio, so it shouldn't be disposed by the extension.
169
-
#pragmawarningdisable CA2000 // Dispose of objects before losing scope.
168
+
// Ownership of the RemoteUserControl is transferred to Visual Studio, so it shouldn't be disposed by the extension
169
+
#pragmawarningdisable CA2000 // Dispose objects before losing scope
170
170
var control = new MyDialogControl(null);
171
-
#pragmawarningrestore CA2000 // Dispose of objects before losing scope.
171
+
#pragmawarningrestore CA2000 // Dispose objects before losing scope
172
172
173
173
DialogResultresult=awaitthis.Extensibility.Shell().ShowDialogAsync(control, "My Dialog Title", DialogOption.OKCancel, cancellationToken);
174
174
175
175
if (result==DialogResult.OK)
176
176
{
177
-
// The user selected the OK button.
177
+
// The user pressed the OK button.
178
178
}
179
179
}
180
180
```
181
181
182
182
## Related content
183
183
184
-
- See [DialogSample](https://github.com/Microsoft/VSExtensibility/tree/main/New_Extensibility_Model/Samples/DialogSample) for a full example of how to create an extension with a dialog.
184
+
- See [DialogSample](https://github.com/Microsoft/VSExtensibility/tree/main/New_Extensibility_Model/Samples/DialogSample) for a full example of how to create an extension with a dialog.
0 commit comments