ISEbd-22 Musatkina K. Y. Lab work 1 BASE #2
@ -40,7 +40,7 @@ namespace BlacksmithWorkshopView
|
||||
public FormManufactureComponent()
|
||||
{
|
||||
InitializeComponent();
|
||||
_list = logic.ReadList(null);
|
||||
_list = logic.ReadList(null);//!!!!!!
|
||||
if (_list != null)
|
||||
{
|
||||
comboBoxComponent.DisplayMember = "ComponentName";
|
||||
|
@ -11,7 +11,7 @@ namespace BlacksmithWorkshopListImplement
|
||||
public class DataListSingleton
|
||||
{
|
||||
private static DataListSingleton? _instance;
|
||||
public List<Component> Components { get; set; }
|
||||
public List<Component> Components { get; set; }//!!!!
|
||||
public List<Order> Orders { get; set; }
|
||||
public List<Manufacture> Manufactures { get; set; }
|
||||
private DataListSingleton()
|
||||
|
@ -66,7 +66,7 @@ namespace BlacksmithWorkshopListImplement.Implements
|
||||
model.Id = component.Id + 1;
|
||||
}
|
||||
}
|
||||
var newComponent = Component.Create(model);
|
||||
var newComponent = Component.Create(model);//!!!!
|
||||
if (newComponent == null)
|
||||
{
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user