private void timeControl_Click(object sender, EventArgs e) { timeControl.Stop(); var timeForm = new TimeDescriptionForm { StartDate = timeControl.StartTime, FinishDate = timeControl.StopTime, AssignableID = ((AssignableSimpleDTO)timeControl.Tag).ID.Value }; if (timeForm.ShowDialog() == DialogResult.OK) { timeControl = null; } else { timeControl.Continue(); } }
private void timeControl_Click(object sender, EventArgs e) { timeControl.Stop(); var timeForm = new TimeDescriptionForm { StartDate = timeControl.StartTime, FinishDate = timeControl.StopTime, AssignableID = ((AssignableSimpleDTO) timeControl.Tag).ID.Value }; if (timeForm.ShowDialog() == DialogResult.OK) { timeControl = null; } else { timeControl.Continue(); } }