/// <summary> /// Handles the tool strip option "Runners" by opening a dialog where the user can add, edit, load or save runners. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void runnersToolStripMenuItem_Click(object sender, EventArgs e) { RunnersView runnersView = new RunnersView(); runnersView.ShowDialog(); if (Race.Runners.Count != 0) { DisplayLaps(); } }
private void runnersToolStripMenuItem_Click(object sender, EventArgs e) { RunnersView runners = new RunnersView(RunnerViewModel); using (runners) { var dialogResult = runners.ShowDialog(); if (dialogResult == DialogResult.OK) { } } }