예제 #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();
            }
        }
예제 #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();
			}
		}