protected void OnAuthCancelled(object sender, EventArgs e) { AuthenticateForm authForm = (AuthenticateForm)sender; RecordPanel record = new RecordPanel(); record.StudentId = authForm.StudentId; record.Status = "取消"; recordLayout.Controls.Add(record); recordLayout.Controls.SetChildIndex(record, 0); }
protected void OnBoothAllocated(object sender, BoothAllocatedEventArgs e) { RecordPanel record = new RecordPanel(); record.StudentId = e.StudentId; record.Status = String.Format("{0} 號平板", e.BoothId); recordLayout.Controls.Add(record); recordLayout.Controls.SetChildIndex(record, 0); boothPanels[e.BoothId - 1].LastUpdated = DateTime.Now; }