/// <summary>
 /// Raises the <see cref="E:Failed"/> event.
 /// </summary>
 /// <param name="e">The <see cref="TinyMoneyManager.Data.DataSynchronizationHandlerEventArgs"/> instance containing the event data.</param>
 protected virtual void OnFailed(DataSynchronizationHandlerEventArgs e)
 {
     var handler = this.DataHandleringFailed;
     if (handler != null)
         handler(this, e);
 }
 private void dataSynchronizationHandler_DataHandleringSuccess(object sender, DataSynchronizationHandlerEventArgs e)
 {
     this.RestoreCheckingStatusPanel.Visibility = Visibility.Collapsed;
     this.serverProxy.CloseAsync();
 }
 /// <summary>
 /// Raises the <see cref="E:Success"/> event.
 /// </summary>
 /// <param name="e">The <see cref="TinyMoneyManager.Data.DataSynchronizationHandlerEventArgs"/> instance containing the event data.</param>
 protected virtual void OnSuccess(DataSynchronizationHandlerEventArgs e)
 {
     var handler = this.DataHandleringSuccess;
     if (handler != null)
         handler(this, e);
 }
 private void dataSynchronizationHandler_DataHandleringFailed(object sender, DataSynchronizationHandlerEventArgs e)
 {
     e.StepViewModel.Failed();
     this.dataSynchronizationHandler.IsProcessBarVisiable = false;
     this.RestoreCheckingStatusPanel.Visibility = Visibility.Collapsed;
 }