25 references to CloseReason
System.Windows.Forms (25)
winforms\Managed\System\WinForms\Form.cs (18)
214
private
CloseReason
closeReason =
CloseReason
.None;
1084
internal
CloseReason
CloseReason {
3569
closeReason =
CloseReason
.UserClosing;
5444
FormClosedEventArgs fce = new FormClosedEventArgs(
CloseReason
.FormOwnerClosing);
5452
OnFormClosed(new FormClosedEventArgs(
CloseReason
.ApplicationExitCall));
5461
FormClosingEventArgs e = new FormClosingEventArgs(
CloseReason
.ApplicationExitCall, false);
5485
FormClosingEventArgs fce = new FormClosingEventArgs(
CloseReason
.FormOwnerClosing, false);
6167
this.CloseReason =
CloseReason
.None;
7025
FormClosingEventArgs fe = new FormClosingEventArgs(
CloseReason
.MdiFormClosing, e.Cancel);
7048
FormClosingEventArgs cfe = new FormClosingEventArgs(
CloseReason
.FormOwnerClosing, e.Cancel);
7069
CloseReason =
CloseReason
.None;
7089
fc = new FormClosedEventArgs(
CloseReason
.MdiFormClosing);
7103
fc = new FormClosedEventArgs(
CloseReason
.FormOwnerClosing);
7416
CloseReason =
CloseReason
.UserClosing;
7546
if (CloseReason ==
CloseReason
.None) {
7547
CloseReason =
CloseReason
.TaskManagerClosing;
7554
CloseReason =
CloseReason
.WindowsShutDown;
winforms\Managed\System\WinForms\FormClosedEvent.cs (3)
30
private
CloseReason
closeReason;
33
public FormClosedEventArgs(
CloseReason
closeReason) {
43
public
CloseReason
CloseReason {
winforms\Managed\System\WinForms\FormClosingEvent.cs (3)
26
private
CloseReason
closeReason;
29
public FormClosingEventArgs(
CloseReason
closeReason, bool cancel)
40
public
CloseReason
CloseReason {
winforms\Managed\System\WinForms\MdiWindowListStrip.cs (1)
97
if (forms[i].Visible && (forms[i].CloseReason ==
CloseReason
.None)) {