private void btnCreate_Click(object sender, EventArgs e)
        {
            AddTaskFrm frm = new AddTaskFrm(null, this);

            frm.StartPosition = FormStartPosition.CenterScreen;
            frm.ShowDialog();
        }
 private void 查看任务ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (dgvTaskList.CurrentRow != null)
     {
         DataGridViewRow currrow = dgvTaskList.CurrentRow;
         string          taskID  = currrow.Cells["TaskID"].Value.ToString();
         AddTaskFrm      frm     = new AddTaskFrm(taskID, null, true);
         frm.StartPosition = FormStartPosition.CenterScreen;
         frm.ShowDialog();
     }
     else
     {
         base.ShowMessage("未获取到当前行数据");
     }
 }