26 lines
578 B
C#
26 lines
578 B
C#
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;
|
|
}
|
|
} |