private void btnQuiz_Click(object sender, EventArgs e) { if (StudentIndex < RandSID.Count) { Mark frmMark = new Mark(RandSID[StudentIndex]); frmMark.ShowDialog(); StudentIndex++; } else { MessageBox.Show("û��ѧ����","����",MessageBoxButtons.OK,MessageBoxIcon.Error); } }
protected void PopupMark(string pSID) { Mark frmMark = new Mark(pSID); if (!frmMark.IsDisposed) frmMark.ShowDialog(); }