private void btnAdd_Click(object sender, EventArgs e)
 {
     // 新增
     Forms.StudQuizDataForm sqdf = new Forms.StudQuizDataForm(null, Forms.StudQuizDataForm.EditMode.Insert,PrimaryKey);
     sqdf.ShowDialog();
     _BGRun();
 }
 private void btnAdd_Click(object sender, EventArgs e)
 {
     // 新增
     Forms.StudQuizDataForm sqdf = new Forms.StudQuizDataForm(null, Forms.StudQuizDataForm.EditMode.Insert, PrimaryKey);
     sqdf.ShowDialog();
     _BGRun();
 }
 private void LoadSubFormData()
 {
     if (lvStudQuizData.SelectedItems.Count == 1)
     {
         DAO.UDT_StudQuizDataDef sqd = lvStudQuizData.SelectedItems[0].Tag as DAO.UDT_StudQuizDataDef;
         if (sqd != null)
         {
             Forms.StudQuizDataForm sqdf = new Forms.StudQuizDataForm(sqd, Forms.StudQuizDataForm.EditMode.Edit, PrimaryKey);
             sqdf.ShowDialog();
         }
         _BGRun();
     }
 }
 private void LoadSubFormData()
 {
     if (lvStudQuizData.SelectedItems.Count == 1)
     {
         DAO.UDT_StudQuizDataDef sqd = lvStudQuizData.SelectedItems[0].Tag as DAO.UDT_StudQuizDataDef;
         if (sqd != null)
         {
             Forms.StudQuizDataForm sqdf = new Forms.StudQuizDataForm(sqd,Forms.StudQuizDataForm.EditMode.Edit,PrimaryKey);
             sqdf.ShowDialog();
         }
         _BGRun();
     }
 }