public FormIDCheck() { InitializeComponent(); try { string UnitName = AppConfigTool.GetAppSettings("Unit"); string[] Unit = UnitName.Split(' '); foreach (string str in Unit) { comboBoxUnit.Items.Add(str); } comboBoxUnit.SelectedIndex = 0; } catch { MessageBox.Show("获取单位名称失败!"); } /* * finally * { * comboBoxUnit.Items.Add("一车间"); * comboBoxUnit.Items.Add("二车间"); * comboBoxUnit.Items.Add("三车间"); * comboBoxUnit.Items.Add("四车间"); * comboBoxUnit.Items.Add("五车间"); * comboBoxUnit.Items.Add("机 关"); * comboBoxUnit.Items.Add("其 他"); * comboBoxUnit.SelectedIndex = 0; * } */ }
private void FormSet_SetExam(int SingleNum, int MultiNum) { intSingleNum = SingleNum; intMultiNum = MultiNum; AppConfigTool.SetAppSetting("SingleNum", SingleNum.ToString()); AppConfigTool.SetAppSetting("MultiNum", MultiNum.ToString()); AppConfigTool.SetAppSetting("QueNum", (SingleNum + MultiNum).ToString()); //throw new NotImplementedException(); }
/* public struct structStuScore * { * string StuName; * string StuID; * string StuScore; * } * * structStuScore StudentScore = new structStuScore(); */ public void InitParam() { StudentName = null; //临时保存考生姓名 StudentID = null; //临时保存考生ID StudentUnitName = null; //临时保存考生单位名称 Score = 0; //临时保存考生成绩 ExamPaper = new Queue <stringQA>(); //保存本次考试试卷 tempQA = new stringQA(); //用于临时保存从试卷中dequeue出来的单个试题 intSingleNum = Convert.ToInt32(AppConfigTool.GetAppSettings("SingleNum")); intMultiNum = Convert.ToInt32(AppConfigTool.GetAppSettings("MultiNum")); }