init
This commit is contained in:
26
C968Project/Product.cs
Normal file
26
C968Project/Product.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace C968Project;
|
||||
|
||||
public class Product
|
||||
{
|
||||
public BindingList<Part> AssociatedParts { get; set; }
|
||||
public int ProductId { get; set; }
|
||||
public string Name { get; set; }
|
||||
public float Price { get; set; }
|
||||
public int InStock { get; set; }
|
||||
public int Min { get; set; }
|
||||
public int Max { get; set; }
|
||||
|
||||
public void AddAssociatedPart(Part part){}
|
||||
|
||||
public bool RemoveAssociatedPart(int partIndex)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public Part LookupAssociatedPart(int partIndex)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user