Example #1
0
        protected virtual void OnEvent(AthleticsEventArgs c)
        {
            if (updateEvent == null)
            {
                return;
            }

            updateEvent(this, c);
        }
Example #2
0
 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);
     }
 }