Лаба 1. Правки 2. Добавление Логов.

This commit is contained in:
Андрей Байгулов 2024-02-15 22:04:33 +04:00
parent 2695eacba8
commit 46bf657b83
3 changed files with 2 additions and 26 deletions

View File

@ -19,10 +19,6 @@ namespace SushiBarView
{
public partial class FormCreateOrder : Form
{
public FormCreateOrder()
{
InitializeComponent();
}
private readonly ILogger _logger;
private readonly ISushiLogic _logicP;
private readonly IOrderLogic _logicO;
@ -69,11 +65,11 @@ namespace SushiBarView
}
}
}
private void TextBoxCount_TextChanged(object sender, EventArgs e)
private void comboBoxSushi_SelectedIndexChanged(object sender, EventArgs e)
{
CalcSum();
}
private void comboBoxSushi_SelectedIndexChanged(object sender, EventArgs e)
private void TextBoxCount_TextChanged(object sender, EventArgs e)
{
CalcSum();
}

View File

@ -15,11 +15,6 @@ namespace SushiBarView
{
public partial class FormSushis : Form
{
public FormSushis()
{
InitializeComponent();
}
private void ButtonAdd_Click(object sender, EventArgs e)
{
var service = Program.ServiceProvider?.GetService(typeof(FormSushi));

View File

@ -1,15 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
autoReload="true" internalLogLevel="Info">
<targets>
<target xsi:type="File" name="tofile" fileName="log-${shortdate}.log" />
</targets>
<rules>
<logger name="*" minlevel="Debug" writeTo="tofile" />
</rules>
</nlog>
</configuration>