2021-03-28 00:23:01 +04:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
2021-03-29 12:13:47 +04:00
|
|
|
|
namespace DepartmentPortalDesctop
|
2021-03-28 00:23:01 +04:00
|
|
|
|
{
|
|
|
|
|
public partial class FormDisplayErrors : Form
|
|
|
|
|
{
|
|
|
|
|
public FormDisplayErrors()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void LoadData(string text, List<KeyValuePair<string, string>> result)
|
|
|
|
|
{
|
|
|
|
|
Text = text;
|
|
|
|
|
foreach (var err in result)
|
|
|
|
|
{
|
|
|
|
|
dataGridViewErrors.Rows.Add(new object[] { err.Key, err.Value });
|
|
|
|
|
}
|
|
|
|
|
ShowDialog();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|