示例#1
0
 private void btnComplete_Click(object sender, EventArgs e)
 {
     try
     {
         if (!string.IsNullOrEmpty(SelectedId))
         {
             DialogResult dresult = MessageBox.Show("确认完工?", "完工确认", MessageBoxButtons.OKCancel);
             if (dresult == DialogResult.OK)
             {
                 taskdal.CompleteTask(SelectedId);
                 bindTask(SelectedStatus);
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }