Ejemplo n.º 1
0
 /// <summary>
 /// Raises the <see cref="QueryCancel"/> event.
 /// </summary>
 /// <param name="args">Query cancel event arguments</param>
 protected virtual void OnQueryCancel( QueryCancelEventArgs args )
 {
     if ( QueryCancel != null )
     {
         QueryCancel( this, args );
     } // End if(QueryCancel != null)
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Handles the QueryCancel event of the _discMaster control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="T:Imapi.Net.QueryCancelEventArgs"/> instance containing the event data.</param>
        private void _discMaster_QueryCancel( object sender, QueryCancelEventArgs e )
        {
            e.Cancel = _cancel;

            if ( _progressBarQueryCancel.Value == _progressBarQueryCancel.Maximum )
            {
                SetProgressBarValue( 0 );
            }
            else
            {
                PerformQueryCancelUpdate();
            }
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Called to request whether the burn event should be cancelled
 /// </summary>
 /// <param name="cancel">Set to <c>1</c> to cancel, otherwise
 /// set to <c>0</c>.</param>
 internal void QueryCancelRequest( out int cancel )
 {
     if ( _jolietAddDataCancel )
     {
         cancel = 1;
     } // End if(_jolietAddDataCancel)
     else
     {
         var queryCancelArgs = new QueryCancelEventArgs();
         OnQueryCancel( queryCancelArgs );
         cancel = ( queryCancelArgs.Cancel ? 1 : 0 );
         if ( cancel == 1 )
         {
             _jolietAddDataCancel = true;
         } // End if(cancel == 1)
     } // End if...else
 }