DepartmentProject/DepartmentPortal/DepartmentPortalDesctop/FormDisplayErrors.cs

23 lines
451 B
C#

using System.Collections.Generic;
using System.Windows.Forms;
namespace DepartmentPortalDesctop
{
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();
}
}
}