100 references to OK
Accessibility_Core_App (1)
PrintingControls.cs (1)
77
if (printDialog1.ShowDialog() == DialogResult.
OK
)
PresentationUI (11)
MS\Internal\Documents\Application\FilePresentation.cs (1)
77
if (dialogResult == DialogResult.
OK
)
MS\Internal\Documents\CredentialManagerDialog.Designer.cs (1)
93
this._okButton.DialogResult = System.Windows.Forms.DialogResult.
OK
;
MS\Internal\Documents\RightsManagementManager.cs (5)
318
result = DialogResult.
OK
;
329
if (result == DialogResult.
OK
)
339
if (result == System.Windows.Forms.DialogResult.
OK
)
465
if (result != DialogResult.
OK
)
1009
if(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)
75
this._nextButton.DialogResult = System.Windows.Forms.DialogResult.
OK
;
MS\Internal\Documents\RMPublishingDialog.cs (2)
742
DialogResult = DialogResult.
OK
;
761
DialogResult = DialogResult.
OK
;
System.Windows.Forms (8)
System\Windows\Forms\Application.ThreadContext.cs (1)
619
DialogResult result = DialogResult.
OK
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (1)
160
DialogResult = DialogResult.
OK
,
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
142
DialogResult = DialogResult.
OK
;
System\Windows\Forms\Design\WindowsFormsComponentEditor.cs (1)
42
return form.ShowForm(owner, GetInitialComponentEditorPageIndex()) == DialogResult.
OK
;
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (1)
220
result = RunDialog(ownerHwnd.Handle) ? DialogResult.
OK
: DialogResult.Cancel;
System\Windows\Forms\Form.cs (1)
2055
if (value == Visible && _dialogResult == DialogResult.
OK
)
System\Windows\Forms\MDI\MDIWindowDialog.cs (1)
110
_okButton.DialogResult = DialogResult.
OK
;
System\Windows\Forms\MDI\MdiWindowListStrip.cs (1)
168
if (result == DialogResult.
OK
)
System.Windows.Forms.Design (28)
System\ComponentModel\Design\BinaryEditor.BinaryUI.cs (2)
114
if (result == DialogResult.
OK
)
183
_buttonOK.DialogResult = DialogResult.
OK
;
System\ComponentModel\Design\BinaryEditor.cs (1)
113
if (editorService.ShowDialog(_binaryUI) == DialogResult.
OK
)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (2)
463
_okButton.DialogResult = DialogResult.
OK
;
957
DialogResult result = DialogResult.
OK
;
System\ComponentModel\Design\CollectionEditor.cs (1)
257
if (localCollectionForm.ShowEditorDialog(editorService) == DialogResult.
OK
)
System\Drawing\Design\FontEditor.cs (1)
41
if (_fontDialog.ShowDialog() == DialogResult.
OK
)
System\Drawing\Design\IconEditor.cs (1)
76
if (_fileDialog.ShowDialog() == DialogResult.
OK
)
System\Drawing\Design\ImageEditor.cs (1)
104
if (_fileDialog.ShowDialog() == DialogResult.
OK
)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
568
DialogResult = DialogResult.
OK
;
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (1)
203
_okButton.DialogResult = DialogResult.
OK
;
System\Windows\Forms\Design\DataGridViewCellStyleEditor.cs (1)
39
if (_builderDialog.ShowDialog() == DialogResult.
OK
)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
609
_okButton.DialogResult = DialogResult.
OK
;
System\Windows\Forms\Design\DataGridViewDesigner.cs (2)
757
if (result == DialogResult.
OK
)
785
if (result == DialogResult.
OK
)
System\Windows\Forms\Design\FileNameEditor.cs (1)
35
if (_openFileDialog.ShowDialog() == DialogResult.
OK
)
System\Windows\Forms\Design\FolderNameEditor.cs (1)
25
if (_folderBrowser.ShowDialog() == DialogResult.
OK
)
System\Windows\Forms\Design\FolderNameEditor.FolderBrowser.cs (1)
70
return DialogResult.
OK
;
System\Windows\Forms\Design\FormatStringDialog.cs (2)
197
_okButton.DialogResult = DialogResult.
OK
;
245
DialogResult = DialogResult.
OK
;
System\Windows\Forms\Design\ImageListImageEditor.cs (1)
70
if (_fileDialog.ShowDialog() == DialogResult.
OK
)
System\Windows\Forms\Design\LinkAreaEditor.cs (1)
48
if (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)
40
if (result == DialogResult.
OK
)
System\Windows\Forms\Design\StringCollectionEditor.StringCollectionForm.cs (1)
101
_okButton.DialogResult = DialogResult.
OK
;
System\Windows\Forms\Design\StyleEditorForm.cs (1)
1100
DialogResult = 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
);
813
Assert.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)
1829
DialogResult expectedDialogResult = DialogResult.
OK
;
2002
Assert.Equal(dialogResult is DialogResult.
OK
or DialogResult.None, control.Visible);
2003
Assert.Equal(dialogResult is DialogResult.
OK
or DialogResult.None, control.IsHandleCreated);
2022
Assert.Equal(dialogResult != DialogResult.
OK
, control.Visible);
2023
Assert.Equal(dialogResult != DialogResult.
OK
, control.IsHandleCreated);
System.Windows.Forms.UI.IntegrationTests (7)
ButtonTests.cs (4)
23
[InlineData(DialogResult.
OK
)]
62
button.DialogResult = DialogResult.
OK
;
70
Assert.Equal(DialogResult.
OK
, form.DialogResult);
80
button.DialogResult = DialogResult.
OK
;
FolderNameEditorTests.cs (1)
46
if (_folderBrowser.ShowDialog(dialogOwnerForm) == DialogResult.
OK
)
OpenFileDialogTests.cs (1)
44
Assert.Equal(DialogResult.
OK
, dialog.ShowDialog(dialogOwnerForm));
PrintDialogTests.cs (1)
31
Assert.Equal(DialogResult.
OK
, dialog.ShowDialog(dialogOwnerForm));
WinFormsControlsTest (4)
ListViewTest.cs (2)
242
if (openFileDialog1.ShowDialog() != DialogResult.
OK
)
274
if (result != DialogResult.
OK
)
RichTextBoxes.cs (2)
130
Button confirmation = new() { Text = "Ok", Left = 350, Width = 100, Top = 70, DialogResult = DialogResult.
OK
};
137
return prompt.ShowDialog() == DialogResult.
OK
? textBox.Text : "";