private void ProcessError(SynchronizationStepViewModel serverStep, System.Exception exception) { serverStep.Failed(); this.StopMainProcessBar(); }
private void RunWithCatch(System.Action action, SynchronizationStepViewModel step) { try { action(); } catch (System.Exception) { step.Failed(); this.StopMainProcessBar(); } }
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(); } }