100 references to OK
Accessibility_Core_App (1)
PrintingControls.cs (1)
77if (printDialog1.ShowDialog() == DialogResult.OK)
PresentationUI (11)
MS\Internal\Documents\Application\FilePresentation.cs (1)
77if (dialogResult == DialogResult.OK)
MS\Internal\Documents\CredentialManagerDialog.Designer.cs (1)
93this._okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
MS\Internal\Documents\RightsManagementManager.cs (5)
318result = DialogResult.OK; 329if (result == DialogResult.OK) 339if (result == System.Windows.Forms.DialogResult.OK) 465if (result != DialogResult.OK) 1009if(ShowCredentialManagementUI(decrypting) != DialogResult.OK)
MS\Internal\Documents\RMEnrollmentPage1.Designer.cs (1)
188_nextButton.DialogResult = System.Windows.Forms.DialogResult.OK;
MS\Internal\Documents\RMEnrollmentPage2.Designer.cs (1)
75this._nextButton.DialogResult = System.Windows.Forms.DialogResult.OK;
MS\Internal\Documents\RMPublishingDialog.cs (2)
742DialogResult = DialogResult.OK; 761DialogResult = DialogResult.OK;
System.Windows.Forms (8)
System\Windows\Forms\Application.ThreadContext.cs (1)
618DialogResult result = DialogResult.OK;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (1)
160DialogResult = DialogResult.OK,
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
142DialogResult = DialogResult.OK;
System\Windows\Forms\Design\WindowsFormsComponentEditor.cs (1)
42return form.ShowForm(owner, GetInitialComponentEditorPageIndex()) == DialogResult.OK;
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (1)
220result = RunDialog(ownerHwnd.Handle) ? DialogResult.OK : DialogResult.Cancel;
System\Windows\Forms\Form.cs (1)
2055if (value == Visible && _dialogResult == DialogResult.OK)
System\Windows\Forms\MDI\MDIWindowDialog.cs (1)
110_okButton.DialogResult = DialogResult.OK;
System\Windows\Forms\MDI\MdiWindowListStrip.cs (1)
168if (result == DialogResult.OK)
System.Windows.Forms.Design (28)
System\ComponentModel\Design\BinaryEditor.BinaryUI.cs (2)
114if (result == DialogResult.OK) 183_buttonOK.DialogResult = DialogResult.OK;
System\ComponentModel\Design\BinaryEditor.cs (1)
113if (editorService.ShowDialog(_binaryUI) == DialogResult.OK)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (2)
463_okButton.DialogResult = DialogResult.OK; 957DialogResult result = DialogResult.OK;
System\ComponentModel\Design\CollectionEditor.cs (1)
257if (localCollectionForm.ShowEditorDialog(editorService) == DialogResult.OK)
System\Drawing\Design\FontEditor.cs (1)
41if (_fontDialog.ShowDialog() == DialogResult.OK)
System\Drawing\Design\IconEditor.cs (1)
76if (_fileDialog.ShowDialog() == DialogResult.OK)
System\Drawing\Design\ImageEditor.cs (1)
104if (_fileDialog.ShowDialog() == DialogResult.OK)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
568DialogResult = DialogResult.OK;
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (1)
203_okButton.DialogResult = DialogResult.OK;
System\Windows\Forms\Design\DataGridViewCellStyleEditor.cs (1)
39if (_builderDialog.ShowDialog() == DialogResult.OK)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
609_okButton.DialogResult = DialogResult.OK;
System\Windows\Forms\Design\DataGridViewDesigner.cs (2)
757if (result == DialogResult.OK) 785if (result == DialogResult.OK)
System\Windows\Forms\Design\FileNameEditor.cs (1)
35if (_openFileDialog.ShowDialog() == DialogResult.OK)
System\Windows\Forms\Design\FolderNameEditor.cs (1)
25if (_folderBrowser.ShowDialog() == DialogResult.OK)
System\Windows\Forms\Design\FolderNameEditor.FolderBrowser.cs (1)
70return DialogResult.OK;
System\Windows\Forms\Design\FormatStringDialog.cs (2)
197_okButton.DialogResult = DialogResult.OK; 245DialogResult = DialogResult.OK;
System\Windows\Forms\Design\ImageListImageEditor.cs (1)
70if (_fileDialog.ShowDialog() == DialogResult.OK)
System\Windows\Forms\Design\LinkAreaEditor.cs (1)
48if (editorService.ShowDialog(_linkAreaUI) == DialogResult.OK)
System\Windows\Forms\Design\LinkAreaEditor.LinkAreaUI.cs (1)
75_okButton.DialogResult = DialogResult.OK;
System\Windows\Forms\Design\MaskDesignerDialog.cs (1)
188_btnOK.DialogResult = DialogResult.OK;
System\Windows\Forms\Design\MaskPropertyEditor.cs (1)
40if (result == DialogResult.OK)
System\Windows\Forms\Design\StringCollectionEditor.StringCollectionForm.cs (1)
101_okButton.DialogResult = DialogResult.OK;
System\Windows\Forms\Design\StyleEditorForm.cs (1)
1100DialogResult = DialogResult.OK;
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (1)
242_okButton.DialogResult = DialogResult.OK;
System.Windows.Forms.Design.Tests (29)
BinaryEditorTests.cs (1)
20.Returns(DialogResult.OK);
System\ComponentModel\Design\CollectionEditorTests.cs (13)
154.Returns(DialogResult.OK); 197.Returns(DialogResult.OK); 245.Returns(DialogResult.OK); 295.Returns(DialogResult.OK); 410.Returns(DialogResult.OK); 447.Returns(DialogResult.OK); 524.Returns(DialogResult.OK); 557.Returns(DialogResult.OK); 597.Returns(DialogResult.OK); 691.Returns(DialogResult.OK); 842.Returns(DialogResult.OK); 946.Returns(DialogResult.OK); 989.Returns(DialogResult.OK);
System\ComponentModel\Design\CollectionFormTests.cs (14)
111.Returns(DialogResult.OK); 167.Returns(DialogResult.OK); 226.Returns(DialogResult.OK); 285.Returns(DialogResult.OK); 344.Returns(DialogResult.OK); 392.Returns(DialogResult.OK); 504.Returns(DialogResult.OK); 548.Returns(DialogResult.OK); 597.Returns(DialogResult.OK); 648.Returns(DialogResult.OK); 719.Returns(DialogResult.OK); 763.Returns(DialogResult.OK); 812.Returns(DialogResult.OK); 813Assert.Equal(DialogResult.OK, form.ShowEditorDialog(mockEditorService.Object));
System\Windows\Forms\Design\MaskedTextBoxTextEditorTests.cs (1)
25.Returns(DialogResult.OK);
System.Windows.Forms.Tests (12)
System\Windows\Forms\CommonDialogTests.cs (7)
91[InlineData(true, DialogResult.OK)] 104[InlineData(true, DialogResult.OK)] 120[InlineData(true, DialogResult.OK)] 145[InlineData(true, DialogResult.OK)] 158[InlineData(true, DialogResult.OK)] 180[InlineData(true, DialogResult.OK)] 194[InlineData(true, DialogResult.OK)]
System\Windows\Forms\FormTests.cs (5)
1829DialogResult expectedDialogResult = DialogResult.OK; 2002Assert.Equal(dialogResult is DialogResult.OK or DialogResult.None, control.Visible); 2003Assert.Equal(dialogResult is DialogResult.OK or DialogResult.None, control.IsHandleCreated); 2022Assert.Equal(dialogResult != DialogResult.OK, control.Visible); 2023Assert.Equal(dialogResult != DialogResult.OK, control.IsHandleCreated);
System.Windows.Forms.UI.IntegrationTests (7)
ButtonTests.cs (4)
23[InlineData(DialogResult.OK)] 62button.DialogResult = DialogResult.OK; 70Assert.Equal(DialogResult.OK, form.DialogResult); 80button.DialogResult = DialogResult.OK;
FolderNameEditorTests.cs (1)
46if (_folderBrowser.ShowDialog(dialogOwnerForm) == DialogResult.OK)
OpenFileDialogTests.cs (1)
44Assert.Equal(DialogResult.OK, dialog.ShowDialog(dialogOwnerForm));
PrintDialogTests.cs (1)
31Assert.Equal(DialogResult.OK, dialog.ShowDialog(dialogOwnerForm));
WinFormsControlsTest (4)
ListViewTest.cs (2)
242if (openFileDialog1.ShowDialog() != DialogResult.OK) 274if (result != DialogResult.OK)
RichTextBoxes.cs (2)
130Button confirmation = new() { Text = "Ok", Left = 350, Width = 100, Top = 70, DialogResult = DialogResult.OK }; 137return prompt.ShowDialog() == DialogResult.OK ? textBox.Text : "";