quick fixes for pr
This commit is contained in:
parent
fee9c553fc
commit
f74e9c199e
@ -57,7 +57,7 @@ namespace ComputersShopBusinessLogic.BusinessLogics
|
|||||||
{
|
{
|
||||||
model.DateImplement = viewModel.DateImplement;
|
model.DateImplement = viewModel.DateImplement;
|
||||||
}
|
}
|
||||||
CheckModel(model);
|
CheckModel(model, false);
|
||||||
if (_orderStorage.Update(model) == null)
|
if (_orderStorage.Update(model) == null)
|
||||||
{
|
{
|
||||||
model.Status--;
|
model.Status--;
|
||||||
|
@ -28,22 +28,22 @@
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
this.label1 = new System.Windows.Forms.Label();
|
this.labelName = new System.Windows.Forms.Label();
|
||||||
this.textBoxName = new System.Windows.Forms.TextBox();
|
this.textBoxName = new System.Windows.Forms.TextBox();
|
||||||
this.textBoxCost = new System.Windows.Forms.TextBox();
|
this.textBoxCost = new System.Windows.Forms.TextBox();
|
||||||
this.label2 = new System.Windows.Forms.Label();
|
this.labelCost = new System.Windows.Forms.Label();
|
||||||
this.buttonSave = new System.Windows.Forms.Button();
|
this.buttonSave = new System.Windows.Forms.Button();
|
||||||
this.buttonCancel = new System.Windows.Forms.Button();
|
this.buttonCancel = new System.Windows.Forms.Button();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// label1
|
// labelName
|
||||||
//
|
//
|
||||||
this.label1.AutoSize = true;
|
this.labelName.AutoSize = true;
|
||||||
this.label1.Location = new System.Drawing.Point(12, 9);
|
this.labelName.Location = new System.Drawing.Point(12, 9);
|
||||||
this.label1.Name = "label1";
|
this.labelName.Name = "labelName";
|
||||||
this.label1.Size = new System.Drawing.Size(62, 15);
|
this.labelName.Size = new System.Drawing.Size(62, 15);
|
||||||
this.label1.TabIndex = 0;
|
this.labelName.TabIndex = 0;
|
||||||
this.label1.Text = "Название:";
|
this.labelName.Text = "Название:";
|
||||||
//
|
//
|
||||||
// textBoxName
|
// textBoxName
|
||||||
//
|
//
|
||||||
@ -59,14 +59,14 @@
|
|||||||
this.textBoxCost.Size = new System.Drawing.Size(136, 23);
|
this.textBoxCost.Size = new System.Drawing.Size(136, 23);
|
||||||
this.textBoxCost.TabIndex = 3;
|
this.textBoxCost.TabIndex = 3;
|
||||||
//
|
//
|
||||||
// label2
|
// labelCost
|
||||||
//
|
//
|
||||||
this.label2.AutoSize = true;
|
this.labelCost.AutoSize = true;
|
||||||
this.label2.Location = new System.Drawing.Point(12, 38);
|
this.labelCost.Location = new System.Drawing.Point(12, 38);
|
||||||
this.label2.Name = "label2";
|
this.labelCost.Name = "labelCost";
|
||||||
this.label2.Size = new System.Drawing.Size(38, 15);
|
this.labelCost.Size = new System.Drawing.Size(38, 15);
|
||||||
this.label2.TabIndex = 2;
|
this.labelCost.TabIndex = 2;
|
||||||
this.label2.Text = "Цена:";
|
this.labelCost.Text = "Цена:";
|
||||||
//
|
//
|
||||||
// buttonSave
|
// buttonSave
|
||||||
//
|
//
|
||||||
@ -96,9 +96,9 @@
|
|||||||
this.Controls.Add(this.buttonCancel);
|
this.Controls.Add(this.buttonCancel);
|
||||||
this.Controls.Add(this.buttonSave);
|
this.Controls.Add(this.buttonSave);
|
||||||
this.Controls.Add(this.textBoxCost);
|
this.Controls.Add(this.textBoxCost);
|
||||||
this.Controls.Add(this.label2);
|
this.Controls.Add(this.labelCost);
|
||||||
this.Controls.Add(this.textBoxName);
|
this.Controls.Add(this.textBoxName);
|
||||||
this.Controls.Add(this.label1);
|
this.Controls.Add(this.labelName);
|
||||||
this.Name = "FormComponent";
|
this.Name = "FormComponent";
|
||||||
this.Text = "Компонент";
|
this.Text = "Компонент";
|
||||||
this.Load += new System.EventHandler(this.FormComponent_Load);
|
this.Load += new System.EventHandler(this.FormComponent_Load);
|
||||||
@ -109,10 +109,10 @@
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
private Label label1;
|
private Label labelName;
|
||||||
private TextBox textBoxName;
|
private TextBox textBoxName;
|
||||||
private TextBox textBoxCost;
|
private TextBox textBoxCost;
|
||||||
private Label label2;
|
private Label labelCost;
|
||||||
private Button buttonSave;
|
private Button buttonSave;
|
||||||
private Button buttonCancel;
|
private Button buttonCancel;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user