1
0
mirror of https://bitbucket.org/FuketsuBaka/clearcache1c.git synced 2024-11-01 04:06:53 +00:00
clearcache1c/ClearCache1C/Form2.cs
2018-11-18 05:30:51 +07:00

55 lines
2.0 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace ClearCache1C
{
public partial class FormResult : Form
{
public FormResult()
{
StartPosition = FormStartPosition.CenterScreen;
InitializeComponent();
}
private void FormResult_Load(object sender, EventArgs e)
{
MaximizeBox = false;
MinimizeBox = false;
}
public void SetInfoResult(int successfully_deleted, int errors_on_delete, float total_size_deleted,
List<string> list_success, List<string> list_error, List<string> list_exceptions)
{
InfoResult.ResetText();
InfoResult.AppendText("--- Итоги ---");
InfoResult.AppendText("\r\nВыполнено успешно: " + successfully_deleted);
InfoResult.AppendText("\r\nВыполнено с ошибками: " + errors_on_delete);
InfoResult.AppendText("\r\nВсего удалено: " + total_size_deleted.ToString("0.00") + " Mb");
InfoResult.AppendText("\r\n");
InfoResult.AppendText("\r\n--- Список обработанных успешно ---");
foreach (string s in list_success)
{
InfoResult.AppendText("\r\n > " + s);
}
InfoResult.AppendText("\r\n");
InfoResult.AppendText("\r\n--- Список обработанных с ошибками ---");
foreach (string s in list_error)
{
InfoResult.AppendText("\r\n > " + s);
}
InfoResult.AppendText("\r\n");
InfoResult.AppendText("\r\n--- Лог ошибок ---");
foreach (string s in list_exceptions)
{
InfoResult.AppendText("\r\n > " + s);
}
}
}
}