예제 #1
0
 public Drug(DrugType drugType, string name, int quantity, DateTime expirationDate, string producer)
 {
     this.DrugType       = drugType;
     this.Name           = name;
     this.Quantity       = quantity;
     this.ExpirationDate = expirationDate;
     this.Producer       = producer;
 }
예제 #2
0
 public Drug(List <Ingredient> ingredients, DrugType drugType, string name, int id, int quantity, DateTime expirationDate, string producer)
 {
     if (ingredients == null)
     {
         this.ingredient = new List <Ingredient>();
     }
     else
     {
         this.ingredient = ingredients;
     }
     if (drugType == null)
     {
         this.drugType = new DrugType();
     }
     else
     {
         this.drugType = new DrugType(drugType);
     }
     this.Name           = name;
     this.Id             = id;
     this.Quantity       = quantity;
     this.ExpirationDate = expirationDate;
     this.Producer       = producer;
 }
예제 #3
0
 public DrugType(DrugType drugType)
 {
     this.Type    = drugType.Type;
     this.Purpose = drugType.Purpose;
 }