24 writes to DialogResult
PresentationUI (2)
MS\Internal\Documents\RMPublishingDialog.cs (2)
742DialogResult = DialogResult.OK; 761DialogResult = DialogResult.OK;
System.Windows.Forms (5)
System\Windows\Forms\Controls\Buttons\Button.cs (1)
195form.DialogResult = _dialogResult;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (1)
290DialogResult = ((Button)s!).DialogResult;
System\Windows\Forms\Design\ComponentEditorForm.cs (2)
142DialogResult = DialogResult.OK; 146DialogResult = DialogResult.Cancel;
System\Windows\Forms\Form.cs (1)
6889DialogResult = DialogResult.Cancel;
System.Windows.Forms.Design (8)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (3)
285DialogResult = DialogResult.None; 671DialogResult = DialogResult.Cancel; 706DialogResult = DialogResult.None;
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
568DialogResult = DialogResult.OK;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
282DialogResult = DialogResult.Cancel;
System\Windows\Forms\Design\FormatStringDialog.cs (2)
245DialogResult = DialogResult.OK; 251DialogResult = DialogResult.Cancel;
System\Windows\Forms\Design\StringCollectionEditor.StringCollectionForm.cs (1)
167DialogResult = DialogResult.Cancel;
System.Windows.Forms.Tests (9)
System\Windows\Forms\FormTests.cs (9)
1842form.DialogResult = expectedDialogResult; 1864DialogResult = dialogResult, 1909DialogResult = dialogResult, 1937DialogResult = dialogResult 1991DialogResult = dialogResult 2043DialogResult = dialogResult 2094DialogResult = dialogResult, 2131DialogResult = dialogResult 2292DialogResult = dialogResult
18 references to DialogResult
System.Windows.Forms (2)
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
462return DialogResult;
System\Windows\Forms\Form.cs (1)
5721return DialogResult;
System.Windows.Forms.Tests (11)
System\Windows\Forms\ButtonTests.cs (8)
1956Assert.Equal(DialogResult.Yes, form.DialogResult); 1966Assert.Equal(DialogResult.Yes, form.DialogResult); 2045Assert.Equal(DialogResult.Yes, form.DialogResult); 2057Assert.Equal(DialogResult.Yes, form.DialogResult); 3140Assert.Equal(DialogResult.None, form.DialogResult); 3149Assert.Equal(DialogResult.None, form.DialogResult); 3225Assert.Equal(DialogResult.None, form.DialogResult); 3237Assert.Equal(DialogResult.None, form.DialogResult);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
78Assert.Equal(DialogResult.None, control.DialogResult);
System\Windows\Forms\FormTests.cs (2)
77Assert.Equal(DialogResult.None, control.DialogResult); 1846Assert.Equal(expectedDialogResult, form.DialogResult);
System.Windows.Forms.UI.IntegrationTests (5)
ButtonTests.cs (5)
39Assert.Equal(DialogResult.None, form.DialogResult); 47Assert.Equal(dialogResult, form.DialogResult); 70Assert.Equal(DialogResult.OK, form.DialogResult); 88Assert.Equal(DialogResult.None, form.DialogResult); 107Assert.Equal(DialogResult.Cancel, form.DialogResult);