Созданы модели и синглтон класс
This commit is contained in:
parent
36bb460f12
commit
8d7daecf60
@ -5,13 +5,15 @@ VisualStudioVersion = 17.4.33213.308
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AircraftPlantView", "AircraftPlant\AircraftPlantView.csproj", "{E434A570-19A4-486C-AD38-3E2C07E6DB01}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AircraftPlantDataModels", "AircraftPlantDataModels\AircraftPlantDataModels.csproj", "{F35C01BC-BCB8-4870-8143-529291F7AD5D}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AircraftPlantDataModels", "AircraftPlantDataModels\AircraftPlantDataModels.csproj", "{F35C01BC-BCB8-4870-8143-529291F7AD5D}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AircraftPlantContracts", "AircraftPlantContracts\AircraftPlantContracts.csproj", "{ECC2CC21-2172-4E1A-8806-CD3EFDC33F12}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AircraftPlantContracts", "AircraftPlantContracts\AircraftPlantContracts.csproj", "{ECC2CC21-2172-4E1A-8806-CD3EFDC33F12}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AircraftPlantBusinessLogic", "AircraftPlantBusinessLogic\AircraftPlantBusinessLogic.csproj", "{65E42A4B-83FC-4029-B478-CE0E60A69F6B}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AircraftPlantBusinessLogic", "AircraftPlantBusinessLogic\AircraftPlantBusinessLogic.csproj", "{65E42A4B-83FC-4029-B478-CE0E60A69F6B}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AircraftPlantListImplement", "AircraftPlantListImplement\AircraftPlantListImplement.csproj", "{F25060DB-386E-4D7D-93BE-DA2873E7D074}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AircraftPlantListImplement", "AircraftPlantListImplement\AircraftPlantListImplement.csproj", "{F25060DB-386E-4D7D-93BE-DA2873E7D074}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AircraftPlantFileImplement", "AircraftPlantFileImplement\AircraftPlantFileImplement.csproj", "{26E801C2-11F3-499E-89A0-712C12318120}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
@ -39,6 +41,10 @@ Global
|
||||
{F25060DB-386E-4D7D-93BE-DA2873E7D074}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{F25060DB-386E-4D7D-93BE-DA2873E7D074}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{F25060DB-386E-4D7D-93BE-DA2873E7D074}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{26E801C2-11F3-499E-89A0-712C12318120}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{26E801C2-11F3-499E-89A0-712C12318120}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{26E801C2-11F3-499E-89A0-712C12318120}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{26E801C2-11F3-499E-89A0-712C12318120}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
@ -0,0 +1,9 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AircraftPlantFileImplement
|
||||
{
|
||||
internal class DataFileSingleton
|
||||
{
|
||||
}
|
||||
}
|
33
AircraftPlant/AircraftPlantFileImplement/Models/Component.cs
Normal file
33
AircraftPlant/AircraftPlantFileImplement/Models/Component.cs
Normal file
@ -0,0 +1,33 @@
|
||||
using AircraftPlantContracts.BindingModels;
|
||||
using AircraftPlantDataModels.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AircraftPlantFileImplement.Models
|
||||
{
|
||||
public class Component : IComponentModel
|
||||
{
|
||||
public string ComponentName { get; private set; } = string.Empty;
|
||||
|
||||
public double Cost { get; set; }
|
||||
|
||||
public int Id { get; private set; }
|
||||
|
||||
public static Component? Create(ComponentBindingModel model)
|
||||
{
|
||||
if (model == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
return new Component()
|
||||
{
|
||||
Id = model.Id,
|
||||
ComponentName = model.ComponentName,
|
||||
Cost = model.Cost
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
12
AircraftPlant/AircraftPlantFileImplement/Models/Order.cs
Normal file
12
AircraftPlant/AircraftPlantFileImplement/Models/Order.cs
Normal file
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AircraftPlantFileImplement.Models
|
||||
{
|
||||
internal class Order
|
||||
{
|
||||
}
|
||||
}
|
12
AircraftPlant/AircraftPlantFileImplement/Models/Plane.cs
Normal file
12
AircraftPlant/AircraftPlantFileImplement/Models/Plane.cs
Normal file
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AircraftPlantFileImplement.Models
|
||||
{
|
||||
internal class Plane
|
||||
{
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user