Parts screen functionality mostly complete; Just need validation
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
using C968Project.Views;
|
||||
|
||||
namespace C968Project;
|
||||
@@ -6,6 +7,40 @@ static class Program
|
||||
{
|
||||
|
||||
public static Inventory Inventory = new();
|
||||
public static int PartIdCounter = 2;
|
||||
public static int ProductIdCounter = 1;
|
||||
|
||||
private static Part _testInhousePart = new Inhouse()
|
||||
{
|
||||
Name = "Inhouse part",
|
||||
Min = 0,
|
||||
Max = 100,
|
||||
Price = 10,
|
||||
InStock = 50,
|
||||
PartID = 0,
|
||||
MachineID = 2
|
||||
};
|
||||
private static Part _testOutsourcedPart = new Outsourced()
|
||||
{
|
||||
Name = "Outsourced part",
|
||||
Min = 10,
|
||||
Max = 100,
|
||||
Price = 5,
|
||||
InStock = 21,
|
||||
PartID = 1,
|
||||
CompanyName = "Chem Inc."
|
||||
};
|
||||
|
||||
private static Product _testProduct = new Product()
|
||||
{
|
||||
Name = "Product",
|
||||
AssociatedParts = new(){_testInhousePart, _testOutsourcedPart},
|
||||
InStock = 500,
|
||||
Max = 4000,
|
||||
Min = 2,
|
||||
Price = 5.45f,
|
||||
ProductId = 0,
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
@@ -13,9 +48,19 @@ static class Program
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Inventory.AddPart(_testOutsourcedPart);
|
||||
Inventory.AddPart(_testInhousePart);
|
||||
Inventory.AddProduct(_testProduct);
|
||||
|
||||
// To customize application configuration such as set high DPI settings or default font,
|
||||
// see https://aka.ms/applicationconfiguration.
|
||||
ApplicationConfiguration.Initialize();
|
||||
Application.Run(new MainScreen());
|
||||
}
|
||||
}
|
||||
|
||||
public enum ScreenOption
|
||||
{
|
||||
ADD,
|
||||
MODIFY
|
||||
}
|
||||
Reference in New Issue
Block a user