26 references to BindingCompleteState
System.Windows.Forms (10)
System\Windows\Forms\DataBinding\Binding.cs (5)
596BindingCompleteState state = BindingCompleteState.Success; 602state = BindingCompleteState.Exception; 613state = BindingCompleteState.DataError; 941if (args.BindingCompleteState == BindingCompleteState.Success && !args.Cancel)
System\Windows\Forms\DataBinding\BindingCompleteEventArgs.cs (5)
18BindingCompleteState state, 37BindingCompleteState state, 50BindingCompleteState state, 62BindingCompleteState state, 70public BindingCompleteState BindingCompleteState { get; }
System.Windows.Forms.Tests (16)
System\Windows\Forms\BindingCompleteEventArgsTests.cs (12)
11yield return new object[] { new Binding(null, new object(), "member"), BindingCompleteState.DataError, BindingCompleteContext.DataSourceUpdate }; 12yield return new object[] { null, BindingCompleteState.Success - 1, BindingCompleteContext.ControlUpdate - 1 }; 17public void Ctor_Binding_BindingCompleteState_BindingCompleteContext(Binding binding, BindingCompleteState state, BindingCompleteContext context) 30yield return new object[] { new Binding(null, new object(), "member"), BindingCompleteState.DataError, BindingCompleteContext.DataSourceUpdate, "errorText" }; 31yield return new object[] { null, BindingCompleteState.Success - 1, BindingCompleteContext.ControlUpdate - 1, null }; 36public void Ctor_Binding_BindingCompleteState_BindingCompleteContext_String(Binding binding, BindingCompleteState state, BindingCompleteContext context, string errorText) 49yield return new object[] { new Binding(null, new object(), "member"), BindingCompleteState.DataError, BindingCompleteContext.DataSourceUpdate, "errorText", new InvalidOperationException() }; 50yield return new object[] { null, BindingCompleteState.Success - 1, BindingCompleteContext.ControlUpdate - 1, null, null }; 55public void Ctor_Binding_BindingCompleteState_BindingCompleteContext_String_Exception(Binding binding, BindingCompleteState state, BindingCompleteContext context, string errorText, Exception exception) 68yield return new object[] { new Binding(null, new object(), "member"), BindingCompleteState.DataError, BindingCompleteContext.DataSourceUpdate, "errorText", new InvalidOperationException(), true }; 69yield return new object[] { null, BindingCompleteState.Success - 1, BindingCompleteContext.ControlUpdate - 1, null, null, false }; 74public 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)
320yield return new object[] { new BindingCompleteEventArgs(null, BindingCompleteState.Success, BindingCompleteContext.ControlUpdate) }; 376yield return new object[] { new BindingCompleteEventArgs(null, BindingCompleteState.Success, BindingCompleteContext.ControlUpdate), new NullReferenceException() }; 409yield return new object[] { new BindingCompleteEventArgs(null, BindingCompleteState.Success, BindingCompleteContext.ControlUpdate), new SecurityException() }; 575Assert.Equal(BindingCompleteState.Success, e.BindingCompleteState);