예제 #1
0
 /// <summary>
 /// 获取选中的任务ID
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void button1_Click(object sender, EventArgs e)
 {
     string task_id = dataGridView1.CurrentRow.Cells["ID"].Value.ToString();
     Task_Details td = new Task_Details(new BLL.task_info().GetModel(task_id));
     td.ShowDialog();
     this.Close();
 }
예제 #2
0
        /// <summary>
        /// 获取选中的任务ID
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button1_Click(object sender, EventArgs e)
        {
            string       task_id = dataGridView1.CurrentRow.Cells["ID"].Value.ToString();
            Task_Details td      = new Task_Details(new BLL.task_info().GetModel(task_id));

            td.ShowDialog();
            this.Close();
        }