public static DialogResult EditTimesModal(Timer t, System.Windows.Forms.IWin32Window owner) { if (t == null) { return(DialogResult.Cancel); } EditTimes f = new EditTimes(); f.setTimer(t); return(f.ShowDialog(owner)); }
private void setTimer(Timer timer) { this.timer = timer; fluentBindingSource.DataSource = timer.GetLaps(); }