Фикс формы компонента и исправление проблемы с обновлением магазина
This commit is contained in:
parent
908c0ea4a5
commit
1b18777f22
@ -106,6 +106,7 @@
|
|||||||
Name = "FormComponent";
|
Name = "FormComponent";
|
||||||
StartPosition = FormStartPosition.CenterScreen;
|
StartPosition = FormStartPosition.CenterScreen;
|
||||||
Text = "Компонент";
|
Text = "Компонент";
|
||||||
|
Load += FormComponent_Load;
|
||||||
ResumeLayout(false);
|
ResumeLayout(false);
|
||||||
PerformLayout();
|
PerformLayout();
|
||||||
}
|
}
|
||||||
|
@ -97,7 +97,8 @@ namespace IceCreamShopView
|
|||||||
Id = _id ?? 0,
|
Id = _id ?? 0,
|
||||||
ShopName = textBoxName.Text,
|
ShopName = textBoxName.Text,
|
||||||
Address = textBoxAddress.Text,
|
Address = textBoxAddress.Text,
|
||||||
DateOpening = dateTimePicker.Value
|
DateOpening = dateTimePicker.Value,
|
||||||
|
ShopIceCreams = _shopIceCreams
|
||||||
};
|
};
|
||||||
var operationResult = _id.HasValue ? _logic.Update(model) : _logic.Create(model);
|
var operationResult = _id.HasValue ? _logic.Update(model) : _logic.Create(model);
|
||||||
if (!operationResult)
|
if (!operationResult)
|
||||||
|
Loading…
Reference in New Issue
Block a user