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