34 lines
905 B
C#
34 lines
905 B
C#
using CarRepairShopContracts.BusinessLogicsContracts;
|
|
using Microsoft.Extensions.Logging;
|
|
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 CarRepairShopView
|
|
{
|
|
public partial class FormLetters : Form
|
|
{
|
|
private readonly ILogger _logger;
|
|
private readonly IMessageInfoLogic _logic;
|
|
|
|
public FormLetters(ILogger<FormLetters> logger, IMessageInfoLogic logic)
|
|
{
|
|
InitializeComponent();
|
|
_logger = logger;
|
|
_logic = logic;
|
|
}
|
|
|
|
private void FormLetters_Load(object sender, EventArgs e)
|
|
{
|
|
_logger.LogInformation("Загрузка писем");
|
|
dataGridView.FillandConfigGrid(_logic.ReadList(null));
|
|
}
|
|
}
|
|
}
|