4 instantiations of TabControlCancelEventArgs
System.Windows.Forms (2)
System\Windows\Forms\Controls\TabControl\TabControl.cs (2)
1950
TabControlCancelEventArgs tcc =
new
(SelectedTab, SelectedIndex, false, TabControlAction.Selecting);
1993
TabControlCancelEventArgs tcc =
new
(SelectedTab, SelectedIndex, false, TabControlAction.Deselecting);
System.Windows.Forms.Tests (2)
System\Windows\Forms\TabControlCancelEventArgsTests.cs (1)
20
TabControlCancelEventArgs e =
new
(tabPage, tabPageIndex, cancel, action);
System\Windows\Forms\TabControlTests.cs (1)
4189
yield return new object[] { new
TabControlCancelEventArgs
(null, 0, true, TabControlAction.Deselecting) };
20 references to TabControlCancelEventArgs
System.Windows.Forms (5)
System\Windows\Forms\Controls\TabControl\TabControl.cs (4)
1457
protected virtual void OnSelecting(
TabControlCancelEventArgs
e)
1476
protected virtual void OnDeselecting(
TabControlCancelEventArgs
e)
1950
TabControlCancelEventArgs
tcc = new(SelectedTab, SelectedIndex, false, TabControlAction.Selecting);
1993
TabControlCancelEventArgs
tcc = new(SelectedTab, SelectedIndex, false, TabControlAction.Deselecting);
System\Windows\Forms\Controls\TabControl\TabControlCancelEventHandler.cs (1)
10
public delegate void TabControlCancelEventHandler(object? sender,
TabControlCancelEventArgs
e);
System.Windows.Forms.Tests (15)
System\Windows\Forms\TabControlCancelEventArgsTests.cs (1)
20
TabControlCancelEventArgs
e = new(tabPage, tabPageIndex, cancel, action);
System\Windows\Forms\TabControlTests.cs (14)
2159
void deselectingHandler(object sender,
TabControlCancelEventArgs
e) => deselectingCallCount++;
2161
void selectingHandler(object sender,
TabControlCancelEventArgs
e) => selectingCallCount++;
2222
void deselectingHandler(object sender,
TabControlCancelEventArgs
e)
2248
void selectingHandler(object sender,
TabControlCancelEventArgs
e)
2335
void deselectingHandler(object sender,
TabControlCancelEventArgs
e)
2352
void selectingHandler(object sender,
TabControlCancelEventArgs
e) => selectingCallCount++;
2413
void deselectingHandler(object sender,
TabControlCancelEventArgs
e)
2439
void selectingHandler(object sender,
TabControlCancelEventArgs
e)
4194
public void TabControl_OnDeselecting_Invoke_CallsDeselecting(
TabControlCancelEventArgs
eventArgs)
4198
void handler(object sender,
TabControlCancelEventArgs
e)
4816
public void TabControl_OnSelecting_Invoke_CallsSelecting(
TabControlCancelEventArgs
eventArgs)
4820
void handler(object sender,
TabControlCancelEventArgs
e)
5795
public new void OnDeselecting(
TabControlCancelEventArgs
e) => base.OnDeselecting(e);
5813
public new void OnSelecting(
TabControlCancelEventArgs
e) => base.OnSelecting(e);