Example #1
0
 void OnLogCancel(object sender, SvnCancelEventArgs e)
 {
     if (_cancel)
     {
         e.Cancel = true;
     }
 }
Example #2
0
 volatile bool _canceling; // Updated from UI thread, read from command thread
 void OnClientCancel(object sender, SvnCancelEventArgs e)
 {
     if (_canceling)
     {
         e.Cancel = true;
     }
 }
Example #3
0
        static IntPtr _libsvnsharp_cancel_func(IntPtr cancelBaton)
        {
            var client = AprBaton <SvnClientContext> .Get(cancelBaton);

            SvnCancelEventArgs ea = new SvnCancelEventArgs();

            try
            {
                client.HandleClientCancel(ea);

                if (ea.Cancel)
                {
                    return(svn_error.svn_error_create(
                               (int)SvnErrorCode.SVN_ERR_CANCELLED,
                               null,
                               "Operation canceled from OnCancel").__Instance);
                }

                return(IntPtr.Zero);
            }
            catch (Exception e)
            {
                return(SvnException.CreateExceptionSvnError("Cancel function", e).__Instance);
            }
            finally
            {
                ea.Detach(false);
            }
        }
Example #4
0
 void client_Cancel(object sender, SvnCancelEventArgs e)
 {
     if (this.cancel_operation)
     {
         e.Cancel = true;
     }
 }
Example #5
0
 void OnCancel(object sender, SvnCancelEventArgs e)
 {
     // BH: This method relies on the knowledge that the dialog hooks Cancel before us.
     if (e.Cancel)
     {
         _mergeActions           = null;
         _resolvedMergeConflicts = null;
     }
 }
Example #6
0
 private void client_Cancel(object sender, SvnCancelEventArgs e)
 {
     try
     {
         e.Cancel = this._cancelCheckout;
         if (e.Cancel)
         {
             backgroundWorkerCheckOut.CancelAsync();
         }
     }
     catch (Exception)
     {
     }
 }
 private void client_Cancel(object sender, SvnCancelEventArgs e)
 {
     e.Cancel = _cancel;
 }
Example #8
0
 void OnCancel(object sender, SvnCancelEventArgs e)
 {
     // BH: This method relies on the knowledge that the dialog hooks Cancel before us.
     if (e.Cancel)
     {
         _mergeActions = null;
         _resolvedMergeConflicts = null;
     }
 }
Example #9
0
        /// <summary>
        /// 被取消
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void SC_Cancel(object sender, SvnCancelEventArgs e)
        {
            e.Cancel = Cancel;
        }
Example #10
0
 void OnClientCancel(object sender, SvnCancelEventArgs e)
 {
     if (_canceling)
         e.Cancel = true;
 }
Example #11
0
 void client_Cancel(object sender, SvnCancelEventArgs e)
 {
     e.Cancel = cancel;
 }
        void client_Cancel(object sender, SvnCancelEventArgs e)
        {
            if (this.cancel_operation)
            {
                e.Cancel = true;
            }

        }
Example #13
0
 private void ClientOnCancel(object sender, SvnCancelEventArgs svnCancelEventArgs)
 {
     svnCancelEventArgs.Cancel = true;
 }
Example #14
0
          /// <summary>
          /// 被取消
          /// </summary>
          /// <param name="sender"></param>
          /// <param name="e"></param>
         private void SC_Cancel(object sender, SvnCancelEventArgs e)
         
 {
                 e.Cancel = Cancel;
             
 }
 void _SvnClient_Cancel(object sender, SvnCancelEventArgs e)
 {
     e.Cancel = _CTS.Token.IsCancellationRequested;
 }