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