private void EditTime() { using (var editTimeForm = new EditTimeForm(WatchTimer.TimeElapsed)) { if (editTimeForm.ShowDialog(this) == DialogResult.OK) { WatchTimer.TimeElapsed = editTimeForm.Time; UpdateOutput(); } } }
public void EditTime() { using (var editTimeForm = new EditTimeForm(WatchTimer.TimeElapsed)) { if (editTimeForm.ShowDialog(this) == DialogResult.OK) { WatchTimer.TimeElapsed = editTimeForm.Time; UpdateOutput(); TimeEdited?.Invoke(this, new EventArgs()); } } }