GetReport() public method

public GetReport ( ) : EntitySynchronizationReport
return EntitySynchronizationReport
Ejemplo n.º 1
0
 private void CurrentSynchronitzationLogger_Disposed(object sender, EventArgs e)
 {
     if (_currentSynchronitzationLogger.HasErrorsOrWarnings)
     {
         _entitySynchronizationReports.Add(_currentSynchronitzationLogger.GetReport());
     }
     _currentSynchronitzationLogger.Clear();
 }
    private async void ImportIcsData_Click (object sender, RibbonControlEventArgs e)
    {
      try
      {
        EnsureSynchronizationContext ();

        var dataInputWindow = CreateWindowWithTextBox();
        dataInputWindow.Item1.ShowDialog();

        var entitySynchronizationLogger = new EntitySynchronizationLogger ();

        await OutlookTestContext.EventRepository.Create (
            async appointmentWrapper => await OutlookTestContext.EntityMapper.Map2To1 (
                OutlookTestContext.DeserializeICalendar (dataInputWindow.Item2.Text),
                appointmentWrapper,
                entitySynchronizationLogger),
            NullEventSynchronizationContext.Instance);

        var reportWindow = CreateWindowWithTextBox();
        reportWindow.Item2.Text = "SynchronizationReport:\r\n" + Serializer<EntitySynchronizationReport>.Serialize (entitySynchronizationLogger.GetReport());
        reportWindow.Item1.ShowDialog();
      }
      catch (Exception x)
      {
        ExceptionHandler.Instance.DisplayException (x, s_logger);
      }
    }