Esempio n. 1
0
        public void getFirstSolveTime()
        {
            string Text = "";

            for (int i = 0; i < OperateForm.problemCnt; ++i)
            {
                Text += OperateForm.charMp[i] + ": ";
                try
                {
                    string sAC_time = DBTool.getFirstSolveTime(i);
                    if (sAC_time == null)
                    {
                        Text += "N/A";
                    }
                    else
                    {
                        DateTime AC_Time  = Convert.ToDateTime(sAC_time, OperateForm.dtFormat);
                        TimeSpan timeSpan = AC_Time - OperateForm.start_time;
                        Text += "" + string.Format("{0:00}", timeSpan.Hours) + ":" + string.Format("{0:00}", timeSpan.Minutes) + ":" + string.Format("{0:00}", timeSpan.Seconds);
                    }
                }
                catch
                {
                    print("网络连接中断!");
                    Application.Exit();
                }
                Text += "\n";
            }
            FirstSolveTime.Text = Text;
        }