コード例 #1
0
 private void ProcessError(SynchronizationStepViewModel serverStep, System.Exception exception)
 {
     serverStep.Failed();
     this.StopMainProcessBar();
 }
コード例 #2
0
 private void RunWithCatch(System.Action action, SynchronizationStepViewModel step)
 {
     try
     {
         action();
     }
     catch (System.Exception)
     {
         step.Failed();
         this.StopMainProcessBar();
     }
 }
コード例 #3
0
 private void RunWithCatch(System.Action action, SynchronizationStepViewModel step)
 {
     try
     {
         action();
     }
     catch (System.Exception exception)
     {
         this.Alert(this.GetLanguageInfoByKey("GetExceptionMessage") + "\r\n" + exception.Message, null);
         AppUpdater.AddErrorLog("ExceptionWhenSyncingData", exception.StackTrace, new string[0]);
         step.Failed();
         this.StopMainProcessBar();
     }
 }