Фиксы

This commit is contained in:
dasha 2023-02-01 12:16:22 +04:00
parent 0c05166def
commit 6306b20430
3 changed files with 9 additions and 11 deletions

View File

@ -64,20 +64,20 @@
// ингредиентыToolStripMenuItem
//
this.ингредиентыToolStripMenuItem.Name = "ингредиентыToolStripMenuItem";
this.ингредиентыToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ингредиентыToolStripMenuItem.Size = new System.Drawing.Size(148, 22);
this.ингредиентыToolStripMenuItem.Text = "Ингредиенты";
this.ингредиентыToolStripMenuItem.Click += new System.EventHandler(this.IngredientsToolStripMenuItem_Click);
//
// сушиToolStripMenuItem
//
this.сушиToolStripMenuItem.Name = "сушиToolStripMenuItem";
this.сушиToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.сушиToolStripMenuItem.Size = new System.Drawing.Size(148, 22);
this.сушиToolStripMenuItem.Text = "Суши";
this.сушиToolStripMenuItem.Click += new System.EventHandler(this.SushiToolStripMenuItem_Click);
//
// buttonUpdate
//
this.buttonUpdate.Location = new System.Drawing.Point(793, 315);
this.buttonUpdate.Location = new System.Drawing.Point(780, 314);
this.buttonUpdate.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.buttonUpdate.Name = "buttonUpdate";
this.buttonUpdate.Size = new System.Drawing.Size(170, 58);
@ -88,7 +88,7 @@
//
// buttonSetToFinish
//
this.buttonSetToFinish.Location = new System.Drawing.Point(793, 253);
this.buttonSetToFinish.Location = new System.Drawing.Point(780, 252);
this.buttonSetToFinish.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.buttonSetToFinish.Name = "buttonSetToFinish";
this.buttonSetToFinish.Size = new System.Drawing.Size(170, 58);
@ -99,7 +99,7 @@
//
// buttonSetToDone
//
this.buttonSetToDone.Location = new System.Drawing.Point(793, 191);
this.buttonSetToDone.Location = new System.Drawing.Point(780, 190);
this.buttonSetToDone.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.buttonSetToDone.Name = "buttonSetToDone";
this.buttonSetToDone.Size = new System.Drawing.Size(170, 58);
@ -110,7 +110,7 @@
//
// buttonSetToWork
//
this.buttonSetToWork.Location = new System.Drawing.Point(793, 129);
this.buttonSetToWork.Location = new System.Drawing.Point(780, 128);
this.buttonSetToWork.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.buttonSetToWork.Name = "buttonSetToWork";
this.buttonSetToWork.Size = new System.Drawing.Size(170, 58);
@ -121,7 +121,7 @@
//
// buttonCreateOrder
//
this.buttonCreateOrder.Location = new System.Drawing.Point(793, 67);
this.buttonCreateOrder.Location = new System.Drawing.Point(780, 66);
this.buttonCreateOrder.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.buttonCreateOrder.Name = "buttonCreateOrder";
this.buttonCreateOrder.Size = new System.Drawing.Size(170, 58);
@ -139,7 +139,7 @@
this.dataGridView.Name = "dataGridView";
this.dataGridView.RowHeadersWidth = 51;
this.dataGridView.RowTemplate.Height = 29;
this.dataGridView.Size = new System.Drawing.Size(787, 426);
this.dataGridView.Size = new System.Drawing.Size(755, 426);
this.dataGridView.TabIndex = 7;
//
// FormMain

View File

@ -5,7 +5,6 @@ namespace SushiBarDataModels.Models
public interface IOrderModel : IId
{
int SushiId { get; }
string SushiName { get; }
int Count { get; }
double Sum { get; }
OrderStatus Status { get; }

View File

@ -22,8 +22,7 @@ namespace SushiBarListImplement.Implements
}
return result;
}
public List<IngredientViewModel> GetFilteredList(IngredientSearchModel
model)
public List<IngredientViewModel> GetFilteredList(IngredientSearchModel model)
{
var result = new List<IngredientViewModel>();
if (string.IsNullOrEmpty(model.IngredientName))