Exemplo n.º 1
0
        private void EditToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Values.MyTaskId     = Convert.ToInt32(dataGridViewMy_task.CurrentRow.Cells[0].Value);
            Values.MyTaskStatus = Convert.ToString(dataGridViewMy_task.CurrentRow.Cells[3].Value);
            Values.MyTaskDate   = Convert.ToString(dataGridViewMy_task.CurrentRow.Cells[4].Value);

            MyTaskFormEdit formEdit = new MyTaskFormEdit();

            formEdit.ShowDialog();

            SelectDateHistory_task();
        }
Exemplo n.º 2
0
        private void dataGridViewHistory_task_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex != -1)
            {
                DataGridViewRow view = dataGridViewMy_task.Rows[e.RowIndex];

                Values.MyTaskId     = Convert.ToInt32(view.Cells[0].Value);
                Values.MyTaskStatus = view.Cells[3].Value.ToString();
                Values.MyTaskDate   = view.Cells[4].Value.ToString();

                MyTaskFormEdit formEdit = new MyTaskFormEdit();

                formEdit.ShowDialog();

                SelectDateHistory_task();
            }
        }