PIbd-23. Elatomtsev L.K. Lab work 01 #2

Closed
DeerElk wants to merge 5 commits from lab1 into main
Showing only changes of commit 48512d74b6 - Show all commits

View File

@ -28,7 +28,8 @@ namespace ConfectioneryView
{
dataGridView.DataSource = list;
dataGridView.Columns["PastryId"].Visible = false;
dataGridView.Columns["PastryName"].AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
dataGridView.Columns["PastryName"].AutoSizeMode =
DataGridViewAutoSizeColumnMode.None;
}
_logger.LogInformation("Загрузка заказов");
}
@ -49,7 +50,8 @@ namespace ConfectioneryView
form.ShowDialog();
}
}
private void PastriesToolStripMenuItem_Click(object sender, EventArgs e)
private void PastriesToolStripMenuItem_Click(object sender,
EventArgs e)
{
var service = Program.ServiceProvider?.GetService(
typeof(FormPastries));
@ -155,7 +157,8 @@ namespace ConfectioneryView
{
LoadData();
}
private OrderBindingModel CreateBindingModel(int id, bool isDone = false)
private OrderBindingModel CreateBindingModel(int id,
Review

Не требуется каждый раз передавать все данные заказа

Не требуется каждый раз передавать все данные заказа
bool isDone = false)
{
return new OrderBindingModel
{