33 references to None
System.Windows.Forms (14)
System\Windows\Forms\Controls\Buttons\Button.cs (1)
137
[DefaultValue(DialogResult.
None
)]
System\Windows\Forms\Dialogs\MessageBox.cs (2)
426
DialogResult result = DialogResult.
None
;
452
return DialogResult.
None
;
System\Windows\Forms\Form.cs (11)
719
if (value is not null && value.DialogResult == DialogResult.
None
)
2085
if (_dialogResult != DialogResult.
None
)
3122
if (_dialogResult == DialogResult.
None
&& Visible)
3139
_dialogResult = DialogResult.
None
;
3149
if (!closingOnly && _dialogResult != DialogResult.
None
)
3164
_dialogResult = DialogResult.
None
;
3175
return _dialogResult != DialogResult.
None
|| !Visible;
5634
_dialogResult = DialogResult.
None
;
5671
if (_dialogResult == DialogResult.
None
)
6578
if (_dialogResult == DialogResult.
None
)
6885
if (Modal && _dialogResult == DialogResult.
None
)
System.Windows.Forms.Design (2)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (2)
285
DialogResult = DialogResult.
None
;
706
DialogResult = DialogResult.
None
;
System.Windows.Forms.Tests (11)
System\Windows\Forms\ButtonTests.cs (5)
60
Assert.Equal(DialogResult.
None
, control.DialogResult);
3140
Assert.Equal(DialogResult.
None
, form.DialogResult);
3149
Assert.Equal(DialogResult.
None
, form.DialogResult);
3225
Assert.Equal(DialogResult.
None
, form.DialogResult);
3237
Assert.Equal(DialogResult.
None
, form.DialogResult);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
78
Assert.Equal(DialogResult.
None
, control.DialogResult);
System\Windows\Forms\FormTests.cs (5)
77
Assert.Equal(DialogResult.
None
, control.DialogResult);
2002
Assert.Equal(dialogResult is DialogResult.OK or DialogResult.
None
, control.Visible);
2003
Assert.Equal(dialogResult is DialogResult.OK or DialogResult.
None
, control.IsHandleCreated);
2064
Assert.Equal(dialogResult == DialogResult.
None
, control.Visible);
2065
Assert.Equal(dialogResult == DialogResult.
None
, control.IsHandleCreated);
System.Windows.Forms.UI.IntegrationTests (6)
ButtonTests.cs (5)
27
[InlineData(DialogResult.
None
)]
32
Assert.Equal(DialogResult.
None
, button.DialogResult);
39
Assert.Equal(DialogResult.
None
, form.DialogResult);
50
Assert.Equal(dialogResult == DialogResult.
None
, form.Visible);
88
Assert.Equal(DialogResult.
None
, form.DialogResult);
MessageBoxTests.cs (1)
12
Assert.Equal(DialogResult.
None
, MessageBox.Show("Testing DialogResult"));