DepartmentProject/DepartmentPortal/Common/DesktopTools/Forms/FormDisplayErrors.cs

23 lines
446 B
C#
Raw Normal View History

2021-03-28 00:23:01 +04:00
using System.Collections.Generic;
using System.Windows.Forms;
namespace DesktopTools.Forms
{
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();
}
}
}