Esempio n. 1
0
 public virtual void OnOilChanged(OilChangeEventArgs e)
 {
     OilChanged?.Invoke(this, e);
 }
Esempio n. 2
0
 static void Announce_OilChange(object sender, OilChangeEventArgs e)
 {
     Console.WriteLine($"next oil change will be at {e.NextOilChange} kms.");
 }