PIbd-21. Rodionov I.A. Lab work 05. Hard #13

Closed
ILRodionov wants to merge 19 commits from lab5_hard into lab5_base
2 changed files with 3 additions and 1 deletions
Showing only changes of commit 1b18777f22 - Show all commits

View File

@ -106,6 +106,7 @@
Name = "FormComponent";
StartPosition = FormStartPosition.CenterScreen;
Text = "Компонент";
Load += FormComponent_Load;
ResumeLayout(false);
PerformLayout();
}

View File

@ -97,7 +97,8 @@ namespace IceCreamShopView
Id = _id ?? 0,
ShopName = textBoxName.Text,
Address = textBoxAddress.Text,
DateOpening = dateTimePicker.Value
DateOpening = dateTimePicker.Value,
ShopIceCreams = _shopIceCreams
};
var operationResult = _id.HasValue ? _logic.Update(model) : _logic.Create(model);
if (!operationResult)