26 references to BindingCompleteState
System.Windows.Forms (10)
System\Windows\Forms\DataBinding\Binding.cs (5)
596
BindingCompleteState
state =
BindingCompleteState
.Success;
602
state =
BindingCompleteState
.Exception;
613
state =
BindingCompleteState
.DataError;
941
if (args.BindingCompleteState ==
BindingCompleteState
.Success && !args.Cancel)
System\Windows\Forms\DataBinding\BindingCompleteEventArgs.cs (5)
18
BindingCompleteState
state,
37
BindingCompleteState
state,
50
BindingCompleteState
state,
62
BindingCompleteState
state,
70
public
BindingCompleteState
BindingCompleteState { 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() };
575
Assert.Equal(
BindingCompleteState
.Success, e.BindingCompleteState);