コード例 #1
0
 public DrugBatch(Drug drug)
 {
     Drug = drug;
 }
コード例 #2
0
 // Easy initializer
 public LogEntry(Drug drug, int previousCount, int newCount)
 {
     Drug          = drug;
     PreviousCount = previousCount;
     NewCount      = newCount;
 }
コード例 #3
0
 // This was required in order to have the ViewModels not throw null exceptions at design time. Never used.
 public DrugBatch()
 {
     Drug = new Drug();
 }