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