protected virtual void OnEvent(AthleticsEventArgs c) { if (updateEvent == null) { return; } updateEvent(this, c); }
private void ChildUpdate(object sender, AthleticsEventArgs c) { if (c.AthleticsEventType == AthleticsEvent.ChildSaved) { /* TODO replace message box with actual refresh */ MessageBox.Show(null, "Child saved.", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information); UpdateTables((Child)c.Data); } }