コード例 #1
0
        /// <summary>
        /// Extends BeginInvoke so that when a state object is not needed, null does not need to be passed.
        /// <example>
        /// odbcrowupdatedeventhandler.BeginInvoke(sender, e, callback);
        /// </example>
        /// </summary>
        public static IAsyncResult BeginInvoke(this OdbcRowUpdatedEventHandler odbcrowupdatedeventhandler, Object sender, OdbcRowUpdatedEventArgs e, AsyncCallback callback)
        {
            if (odbcrowupdatedeventhandler == null)
            {
                throw new ArgumentNullException("odbcrowupdatedeventhandler");
            }

            return(odbcrowupdatedeventhandler.BeginInvoke(sender, e, callback, null));
        }
コード例 #2
0
        /// <include file='doc\OdbcDataAdapter.uex' path='docs/doc[@for="OdbcDataAdapter.OnRowUpdated"]/*' />
        override protected void OnRowUpdated(RowUpdatedEventArgs value)
        {
            OdbcRowUpdatedEventHandler handler = (OdbcRowUpdatedEventHandler)Events[EventRowUpdated];

            if ((null != handler) && (value is OdbcRowUpdatedEventArgs))
            {
                handler(this, (OdbcRowUpdatedEventArgs)value);
            }
        }
コード例 #3
0
        protected override void OnRowUpdated(RowUpdatedEventArgs value)
        {
            OdbcRowUpdatedEventHandler handler = (OdbcRowUpdatedEventHandler)base.Events[EventRowUpdated];

            if ((handler != null) && (value is OdbcRowUpdatedEventArgs))
            {
                handler(this, (OdbcRowUpdatedEventArgs)value);
            }
            base.OnRowUpdated(value);
        }