private void bindingSource_DataError( object sender, BindingManagerDataErrorEventArgs e )
 {
     MessageBox.Show( "tournamentBindingSource_DataError"
         + "\n sender:" + sender.GetType()
         + "\n EventArgs:" + e.GetType()
     );
 }
		public void TestBindingManagerDataErrorEventArgs ()
		{
			Exception ex = new ArgumentNullException ();

			BindingManagerDataErrorEventArgs e = new BindingManagerDataErrorEventArgs (ex);

			Assert.AreEqual (ex, e.Exception, "A1");
		}
 protected virtual void OnDataError(BindingManagerDataErrorEventArgs e)
 {
     BindingManagerDataErrorEventHandler handler = base.Events[EVENT_DATAERROR] as BindingManagerDataErrorEventHandler;
     if (handler != null)
     {
         handler(this, e);
     }
 }
 private void cIKKCSOPORTBindingSource_DataError(object sender, BindingManagerDataErrorEventArgs e)
 {
     MessageBox.Show(e.Exception.Message);
 }
Exemple #5
0
 private void tBDEDUCCIONBindingSource_DataError(object sender, BindingManagerDataErrorEventArgs e)
 {
     this.BindingSource_DataError(sender, e);
 }
 private void BindingSource_DataError(object sender, BindingManagerDataErrorEventArgs e)
 {
     MessageBox.Show("Binding Exception: " + e.Exception.Message);
 }
Exemple #7
0
 private void CurrencyManager_DataError(object sender, BindingManagerDataErrorEventArgs e) {
     OnDataError(e);
 }
Exemple #8
0
		protected void DataError (object sender, BindingManagerDataErrorEventArgs args)
		{
			//Console.WriteLine (Environment.StackTrace);
			event_log += String.Format ("{0}: DataError\n", event_num++);
		}
        private void DisplayError(BindingManagerDataErrorEventArgs e)
        {
            lock (_errorMessageLock)
            {
                _errorMessagePending = false;
            }
            if (_suppressErrorMessages)
            {
                return;
            }
            string message = TextUtil.LineSeparate(
                Resources.DataboundGridControl_DisplayError_An_error_occured_while_displaying_the_data_rows_,
                e.Exception.Message,
                Resources.DataboundGridControl_DisplayError_Do_you_want_to_continue_to_see_these_error_messages_
                );

            var alertDlg = new AlertDlg(message, MessageBoxButtons.YesNo) {Exception = e.Exception};
            if (alertDlg.ShowAndDispose(this) == DialogResult.No)
            {
                _suppressErrorMessages = true;
            }
        }
 private void bindingListSource_DataError(object sender, BindingManagerDataErrorEventArgs e)
 {
     lock (_errorMessageLock)
     {
         if (_suppressErrorMessages || _errorMessagePending)
         {
             return;
         }
         if (IsHandleCreated)
         {
             try
             {
                 BeginInvoke(new Action(() => DisplayError(e)));
                 _errorMessagePending = true;
             }
             catch (Exception)
             {
                 // ignore
             }
         }
     }
 }
 private void BindingListViewOnUnhandledException(object sender, BindingManagerDataErrorEventArgs args)
 {
     OnDataError(args);
 }
 private void BindingSourceUltraID3_DataError(object sender, BindingManagerDataErrorEventArgs e)
 {
 }
Exemple #13
0
 private void tBHORAEXTRABindingSource_DataError(object sender, BindingManagerDataErrorEventArgs e)
 {
     this.BindingSource_DataError(sender, e);
 }
 private void tBPAGOEMPRESABindingSource_DataError(object sender, BindingManagerDataErrorEventArgs e)
 {
     this.BindingSource_DataError(sender, e);
 }
 /// <summary>
 /// Occur Error event on property of logger.
 /// </summary>
 /// <param name="sender">BindingSource</param>
 /// <param name="e">BindingManagerDataErrorEventArgs</param>
 private void propertiesBindingSource_DataError(object sender, BindingManagerDataErrorEventArgs e)
 {
     Util.ShowErrorDialog(MessageResources.ErrInvalidValue);
     tabControl1.Focus();
 }
Exemple #16
0
 public void BindingSource_DataError(object sender, BindingManagerDataErrorEventArgs e)
 {
     MessageBox.Show("Ocurrió un error al actualizar los datos: " + e.Exception.Message);
 }
Exemple #17
0
		private void renderItemViewBindingSource_DataError(object sender, BindingManagerDataErrorEventArgs e)
		{
			var me = sender as BindingSource;
			me.Clear();
		}
 private void tBEMPRESAAFILIACIONBindingSource_DataError(object sender, BindingManagerDataErrorEventArgs e)
 {
     this.BindingSource_DataError(sender, e);
 }
Exemple #19
0
 private void bindingSource_DataError(object sender, BindingManagerDataErrorEventArgs e)
 {
     Log("DataError");
 }
Exemple #20
0
 private void productBindingSource_DataError(object sender, BindingManagerDataErrorEventArgs e)
 {
     MessageBox.Show("DataError");
 }
Exemple #21
0
		protected virtual void OnDataError (BindingManagerDataErrorEventArgs e)
		{
			BindingManagerDataErrorEventHandler eh = (BindingManagerDataErrorEventHandler) Events[DataErrorEvent];
			if (eh != null)
				eh (this, e);
		}
Exemple #22
0
 void bsTimers_DataError(object sender, BindingManagerDataErrorEventArgs e)
 {
     throw new NotImplementedException();
 }
Exemple #23
0
 /// <include file='doc\BindingSource.uex' path='docs/doc[@for="BindingSource.OnDataError"]/*' />
 protected virtual void OnDataError(BindingManagerDataErrorEventArgs e) {
     BindingManagerDataErrorEventHandler eh = Events[EVENT_DATAERROR] as BindingManagerDataErrorEventHandler;
     if (eh != null)
         eh(this, e);
 }
Exemple #24
0
 private void gürtelBindingSource_DataError(object sender, BindingManagerDataErrorEventArgs e)
 {
 }
 private void bindingSourcePoint_DataError(object sender, BindingManagerDataErrorEventArgs e)
 {
 }
Exemple #26
0
 private void tBEMPLEADOBindingSource_DataError(object sender, BindingManagerDataErrorEventArgs e)
 {
     this.BindingSource_DataError(sender, e);
 }
        /// <summary>
        /// Extends BeginInvoke so that when a state object is not needed, null does not need to be passed.
        /// <example>
        /// bindingmanagerdataerroreventhandler.BeginInvoke(sender, e, callback);
        /// </example>
        /// </summary>
        public static IAsyncResult BeginInvoke(this BindingManagerDataErrorEventHandler bindingmanagerdataerroreventhandler, Object sender, BindingManagerDataErrorEventArgs e, AsyncCallback callback)
        {
            if(bindingmanagerdataerroreventhandler == null) throw new ArgumentNullException("bindingmanagerdataerroreventhandler");

            return bindingmanagerdataerroreventhandler.BeginInvoke(sender, e, callback, null);
        }
Exemple #28
0
 private void bindingSource_DataError(object sender, BindingManagerDataErrorEventArgs e)
 {
     MessageBox.Show("Поймали bindingSource_DataError");
 }