private void StopButtonChanged_Click(object sender, EventArgs e)
        {
            if (richTextBox1.Text.Length == 0)
            {
                return;
            }

            //if (Convert.ToDateTime(timeEdit1.EditValue) > DateTime.Now)
            //{
            //    MessageBox.Show("«Не торопитесь жить!» — © А.В.Литвиненко");
            //    return;
            //}

            DateTime D;

            if (IsOverdued)
            {
                D = Convert.ToDateTime(OverduedDateTime.ToShortDateString() + " " + timeEdit1.Time.ToString("HH:mm:ss.fff"));
                LightWorkDay.EndWorkDay(Security.CurrentUserID, D, richTextBox1.Text, true);
            }
            else
            {
                D = Convert.ToDateTime(timeEdit1.EditValue);
                LightWorkDay.EndWorkDay(Security.CurrentUserID, D, richTextBox1.Text);
            }

            FormEvent            = eClose;
            AnimateTimer.Enabled = true;
        }
        private void StopButton_Click(object sender, EventArgs e)
        {
            LightWorkDay.EndWorkDay(Security.CurrentUserID);

            FormEvent            = eClose;
            AnimateTimer.Enabled = true;
        }