Exemplo n.º 1
0
        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();
            }
        }
Exemplo n.º 2
0
		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();
			}
		}