Beispiel #1
0
        private void listTurnaround_Click(object sender, EventArgs e)
        {
            if (listTurnaround.SelectedIndex == -1)
            {
                return;
            }
            DateTime duedate = LabTurnarounds.ComputeDueDate
                                   (MiscData.GetNowDateTime().Date, turnaroundList[listTurnaround.SelectedIndex].DaysActual);

            textDateDue.Text             = duedate.ToShortDateString() + " " + duedate.ToShortTimeString();
            listTurnaround.SelectedIndex = -1;
        }