Exemplo n.º 1
0
             /// <summary>
             /// 任何svn错误可以在这处理,也可以在这里处理是否取消
             /// </summary>
             /// <param name="sender"></param>
             /// <param name="e"></param>
            private void SC_SvnError(object sender, SvnErrorEventArgs e)
            
    {
                    e.Cancel = true;
                    WriteError(e.Exception);

                
    }
Exemplo n.º 2
0
 private void svnc_SvnError(object sender, EventArgs ea)
 {
     if (this.InvokeRequired)
     {
         delEventHandler del = new delEventHandler(svnc_SvnError);
         this.Invoke(del, sender, ea);
     }
     else
     {
         SvnErrorEventArgs seea = ea as SvnErrorEventArgs;
         isDownloading = false;
         clearNotification1();
         MessageBox.Show("SVN Error:\r\n" + seea.Exception.Message);
     }
 }
Exemplo n.º 3
0
        /// <summary>
        /// Event Handler for the Subversion Error Event. This is
        /// called when there is a problem with the transfer of
        /// data to the remote repository
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void client_SvnError(object sender, SvnErrorEventArgs e)
        {
            e.Cancel = true;

            // Use the e.Exception parameter to show error message.

            this.cleanup_event_handlers();

            // Change color of the progress bar
            this.commit_progress_bar.Foreground = new LinearGradientBrush(Colors.Red, Colors.DarkRed, 45.0);

            // Launch Error Dialog
            SvnErrorDialog error = new SvnErrorDialog();

            error.Show();
        }
Exemplo n.º 4
0
 private void OnSvnError(object sender, SvnErrorEventArgs svnErrorEventArgs)
 {
     Logging.Log().Error($"Error: {svnErrorEventArgs.Exception}");
     this.syncLogger.Log(this.sync, $"Error: {svnErrorEventArgs.Exception}");
 }
Exemplo n.º 5
0
        /// <summary>
        /// 任何svn错误可以在这处理,也可以在这里处理是否取消
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void SC_SvnError(object sender, SvnErrorEventArgs e)
        {
            e.Cancel = true;
            WriteError(e.Exception);
        }
Exemplo n.º 6
0
 private void SvnUpdateArgsOnSvnError(object sender, SvnErrorEventArgs e)
 {
     Logger.LogError(e.Exception.Message, e.Exception.SvnErrorCategory.ToString());
 }
 void commitArgs_SvnError(object sender, SvnErrorEventArgs e)
 {
     System.Diagnostics.Debug.WriteLine(e.Exception);
 }
        /// <summary>
        /// Event Handler for the Subversion Error Event. This is 
        /// called when there is a problem with the transfer of 
        /// data to the remote repository 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void client_SvnError(object sender, SvnErrorEventArgs e)
        {
            e.Cancel = true;

            // Use the e.Exception parameter to show error message.
            
            this.cleanup_event_handlers();

            // Change color of the progress bar 
            this.commit_progress_bar.Foreground = new LinearGradientBrush(Colors.Red, Colors.DarkRed, 45.0); 

            // Launch Error Dialog 
            SvnErrorDialog error = new SvnErrorDialog();
            error.Show();

        }