Exemplo n.º 1
0
 private void btadd_Click(object sender, EventArgs e)
 {
     using (FrmQuestionInfo form = new FrmQuestionInfo())
     {
         form.StartPosition = FormStartPosition.CenterParent;
         form.ShowDialog(this);
         if (form.IsOper)
         {
             LoadList(centPage.PageNum);
         }
     }
 }
Exemplo n.º 2
0
 private void btedit_Click(object sender, EventArgs e)
 {
     if (listv.SelectedItems.Count > 0)
     {
         string ids = listv.SelectedItems[0].Name;
         if (ids != "")
         {
             using (FrmQuestionInfo form = new FrmQuestionInfo())
             {
                 form.tkid          = ids;
                 form.StartPosition = FormStartPosition.CenterParent;
                 form.ShowDialog(this);
                 if (form.IsOper)
                 {
                     LoadList(centPage.PageNum);
                 }
             }
         }
     }
     else
     {
         wapp.MessageBoxEx.Show(this, "请选择需要编辑的题库!", "系统提示");
     }
 }