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