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);
2000
TabControlCancelEventArgs tcc =
new
(SelectedTab, SelectedIndex, false, TabControlAction.Deselecting);
System.Windows.Forms.Tests (2)
System\Windows\Forms\TabControlCancelEventArgsTests.cs (1)
22
TabControlCancelEventArgs e =
new
(tabPage, tabPageIndex, cancel, action);
System\Windows\Forms\TabControlTests.cs (1)
4191
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);
2000
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)
22
TabControlCancelEventArgs
e = new(tabPage, tabPageIndex, cancel, action);
System\Windows\Forms\TabControlTests.cs (14)
2161
void deselectingHandler(object sender,
TabControlCancelEventArgs
e) => deselectingCallCount++;
2163
void selectingHandler(object sender,
TabControlCancelEventArgs
e) => selectingCallCount++;
2224
void deselectingHandler(object sender,
TabControlCancelEventArgs
e)
2250
void selectingHandler(object sender,
TabControlCancelEventArgs
e)
2337
void deselectingHandler(object sender,
TabControlCancelEventArgs
e)
2354
void selectingHandler(object sender,
TabControlCancelEventArgs
e) => selectingCallCount++;
2415
void deselectingHandler(object sender,
TabControlCancelEventArgs
e)
2441
void selectingHandler(object sender,
TabControlCancelEventArgs
e)
4196
public void TabControl_OnDeselecting_Invoke_CallsDeselecting(
TabControlCancelEventArgs
eventArgs)
4200
void handler(object sender,
TabControlCancelEventArgs
e)
4818
public void TabControl_OnSelecting_Invoke_CallsSelecting(
TabControlCancelEventArgs
eventArgs)
4822
void handler(object sender,
TabControlCancelEventArgs
e)
5824
public new void OnDeselecting(
TabControlCancelEventArgs
e) => base.OnDeselecting(e);
5842
public new void OnSelecting(
TabControlCancelEventArgs
e) => base.OnSelecting(e);