public void WriteDetailsOnParent(MainForm frm, Control parent, Point location) { frm.ClearEventDetails(); if (Time == null) { EventLabel(frm, parent, ref location, "Time:", Year.ToString()); } else { EventLabel(frm, parent, ref location, "Time: ", this, Time.ToString()); } WriteDataOnParent(frm, parent, ref location); if (parent == frm.grpHistoricalEvent) { EventLabel(frm, parent, ref location, "Previous:", LastEvent()); EventLabel(frm, parent, ref location, "Next:", NextEvent()); } if (EventCollection != null) { EventLabel(frm, parent, ref location, "Event Col:", EventCollection); if (parent == frm.grpHistoricalEvent) { EventLabel(frm, parent, ref location, " Previous:", EventCollection.GetPreviousEvent(this)); EventLabel(frm, parent, ref location, " Next:", EventCollection.GetNextEvent(this)); } } if (parent == frm.grpHistoricalEvent) { try { EventLabel(frm, parent, ref location, LegendsDescription(), ""); } catch (Exception) { EventLabel(frm, parent, ref location, "", ""); } } }