예제 #1
0
 public GasPurchase(
     int id, 
     DateTime when, 
     decimal price, 
     int amount, 
     int distance, 
     Grade grade,
     string note,
     MilageType type = MilageType.LitersPerKm)
 {
     _id = id;
     _type = type;
     _when = when;
     _price = price;
     _amount = amount;
     _distance = distance;
     _grade = grade;
     _note = note;
 }
예제 #2
0
 public GasPurchase(
     int id,
     DateTime when,
     decimal price,
     int amount,
     int distance,
     Grade grade,
     string note,
     MilageType type = MilageType.LitersPerKm)
 {
     _id       = id;
     _type     = type;
     _when     = when;
     _price    = price;
     _amount   = amount;
     _distance = distance;
     _grade    = grade;
     _note     = note;
 }