Exemplo n.º 1
0
 protected void OnBindingComplete(BindingCompleteEventArgs args)
 {
     if (BindingComplete != null)
     {
         BindingComplete(this, args);
     }
 }
Exemplo n.º 2
0
 protected virtual void OnBindingComplete(BindingCompleteEventArgs e)
 {
     if (BindingComplete != null)
     {
         BindingComplete(this, e);
     }
 }
Exemplo n.º 3
0
        protected virtual void OnBindingComplete(BindingCompleteEventArgs e)
        {
            BindingCompleteEventHandler eh = (BindingCompleteEventHandler)Events[BindingCompleteEvent];

            if (eh != null)
            {
                eh(this, e);
            }
        }
Exemplo n.º 4
0
        protected override void OnBindingComplete(BindingCompleteEventArgs e)
        {
            base.OnBindingComplete(e);

            if (typeof(RadioButton).IsAssignableFrom(Control.GetType()))
            {
                //DataSourceUpdateMode.OnValidating does not work with RadioButtons
                DataSourceUpdateMode = DataSourceUpdateMode.OnPropertyChanged;
            }
        }
Exemplo n.º 5
0
        void FireBindingComplete(BindingCompleteContext context, Exception exc, string error_message)
        {
            BindingCompleteEventArgs args = new BindingCompleteEventArgs(this,
                                                                         exc == null ? BindingCompleteState.Success : BindingCompleteState.Exception,
                                                                         context);

            if (exc != null)
            {
                args.SetException(exc);
                args.SetErrorText(error_message);
            }

            OnBindingComplete(args);
        }