24 references to BindingCompleteContext
System.Windows.Forms (8)
System\Windows\Forms\DataBinding\Binding.cs (3)
592
private BindingCompleteEventArgs CreateBindingCompleteEventArgs(
BindingCompleteContext
context, Exception? ex)
934
BindingCompleteEventArgs args = CreateBindingCompleteEventArgs(
BindingCompleteContext
.DataSourceUpdate, lastException);
1011
BindingCompleteEventArgs args = CreateBindingCompleteEventArgs(
BindingCompleteContext
.ControlUpdate, lastException);
System\Windows\Forms\DataBinding\BindingCompleteEventArgs.cs (5)
19
BindingCompleteContext
context,
38
BindingCompleteContext
context,
51
BindingCompleteContext
context,
63
BindingCompleteContext
context)
72
public
BindingCompleteContext
BindingCompleteContext { get; }
System.Windows.Forms.Tests (16)
System\Windows\Forms\BindingCompleteEventArgsTests.cs (12)
11
yield return new object[] { new Binding(null, new object(), "member"), BindingCompleteState.DataError,
BindingCompleteContext
.DataSourceUpdate };
12
yield return new object[] { null, BindingCompleteState.Success - 1,
BindingCompleteContext
.ControlUpdate - 1 };
17
public void Ctor_Binding_BindingCompleteState_BindingCompleteContext(Binding binding, BindingCompleteState state,
BindingCompleteContext
context)
30
yield return new object[] { new Binding(null, new object(), "member"), BindingCompleteState.DataError,
BindingCompleteContext
.DataSourceUpdate, "errorText" };
31
yield return new object[] { null, BindingCompleteState.Success - 1,
BindingCompleteContext
.ControlUpdate - 1, null };
36
public void Ctor_Binding_BindingCompleteState_BindingCompleteContext_String(Binding binding, BindingCompleteState state,
BindingCompleteContext
context, string errorText)
49
yield return new object[] { new Binding(null, new object(), "member"), BindingCompleteState.DataError,
BindingCompleteContext
.DataSourceUpdate, "errorText", new InvalidOperationException() };
50
yield return new object[] { null, BindingCompleteState.Success - 1,
BindingCompleteContext
.ControlUpdate - 1, null, null };
55
public void Ctor_Binding_BindingCompleteState_BindingCompleteContext_String_Exception(Binding binding, BindingCompleteState state,
BindingCompleteContext
context, string errorText, Exception exception)
68
yield return new object[] { new Binding(null, new object(), "member"), BindingCompleteState.DataError,
BindingCompleteContext
.DataSourceUpdate, "errorText", new InvalidOperationException(), true };
69
yield return new object[] { null, BindingCompleteState.Success - 1,
BindingCompleteContext
.ControlUpdate - 1, null, null, false };
74
public void Ctor_Binding_BindingCompleteState_BindingCompleteContext_String_Exception_Bool(Binding binding, BindingCompleteState state,
BindingCompleteContext
context, string errorText, Exception exception, bool cancel)
System\Windows\Forms\BindingTests.cs (4)
320
yield return new object[] { new BindingCompleteEventArgs(null, BindingCompleteState.Success,
BindingCompleteContext
.ControlUpdate) };
376
yield return new object[] { new BindingCompleteEventArgs(null, BindingCompleteState.Success,
BindingCompleteContext
.ControlUpdate), new NullReferenceException() };
409
yield return new object[] { new BindingCompleteEventArgs(null, BindingCompleteState.Success,
BindingCompleteContext
.ControlUpdate), new SecurityException() };
574
Assert.Equal(
BindingCompleteContext
.ControlUpdate, e.BindingCompleteContext);