private void addBTN_Click(object sender, EventArgs e) { //get the time first, that way it's not delayed by the amount of time //it takes for the user to enter a name and hit ok. DateTime time = _replay.SimulationTime; NewBookMarkDialog nb = new NewBookMarkDialog(); if (nb.ShowDialog() == DialogResult.OK) { Bookmark b = new Bookmark(nb.BookmarkName, time); b.Save(); LoadBookmarks(); } }