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)
426DialogResult result = DialogResult.None; 452return DialogResult.None;
System\Windows\Forms\Form.cs (11)
719if (value is not null && value.DialogResult == DialogResult.None) 2085if (_dialogResult != DialogResult.None) 3122if (_dialogResult == DialogResult.None && Visible) 3139_dialogResult = DialogResult.None; 3149if (!closingOnly && _dialogResult != DialogResult.None) 3164_dialogResult = DialogResult.None; 3175return _dialogResult != DialogResult.None || !Visible; 5634_dialogResult = DialogResult.None; 5671if (_dialogResult == DialogResult.None) 6578if (_dialogResult == DialogResult.None) 6885if (Modal && _dialogResult == DialogResult.None)
System.Windows.Forms.Design (2)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (2)
285DialogResult = DialogResult.None; 706DialogResult = DialogResult.None;
System.Windows.Forms.Tests (11)
System\Windows\Forms\ButtonTests.cs (5)
60Assert.Equal(DialogResult.None, control.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 (5)
77Assert.Equal(DialogResult.None, control.DialogResult); 2002Assert.Equal(dialogResult is DialogResult.OK or DialogResult.None, control.Visible); 2003Assert.Equal(dialogResult is DialogResult.OK or DialogResult.None, control.IsHandleCreated); 2064Assert.Equal(dialogResult == DialogResult.None, control.Visible); 2065Assert.Equal(dialogResult == DialogResult.None, control.IsHandleCreated);
System.Windows.Forms.UI.IntegrationTests (6)
ButtonTests.cs (5)
27[InlineData(DialogResult.None)] 32Assert.Equal(DialogResult.None, button.DialogResult); 39Assert.Equal(DialogResult.None, form.DialogResult); 50Assert.Equal(dialogResult == DialogResult.None, form.Visible); 88Assert.Equal(DialogResult.None, form.DialogResult);
MessageBoxTests.cs (1)
12Assert.Equal(DialogResult.None, MessageBox.Show("Testing DialogResult"));