Beispiel #1
0
        public Form13(string numberstr)
        {
            al         = new ArrayList();
            alText     = new ArrayList();
            clickstate = new ArrayList();

            //No xiti.id
            _xitiId     = Global.getSchoolID() + "-" + Global.getClassroomID() + "-" + DateTime.Now.ToString("yyyyMMdd_HHmmss");
            fo.DirName  = DateTime.Now.ToString("yyyyMMdd");
            fo.FilePath = Application.StartupPath + "\\" + fo.DirName + "\\";
            fo.FileName = _xitiId + ".txt";

            fo.DeleteFile();
            fo.CreateDir();
            fo.CreateFile();
            InitializeComponent();
            SetPanel(numberstr);
            this.Text        = "抢答";
            this.WindowState = FormWindowState.Maximized;
            this.TopMost     = true;
#if DEBUG
            this.TopMost = false;//Form13 无题抢答
#endif


            t           = new System.Timers.Timer(200);
            t.Elapsed  += new System.Timers.ElapsedEventHandler(Theout);
            t.Enabled   = true;
            t.AutoReset = true;
        }