private void createTaskToolStripMenuItem_Click(object sender, EventArgs e) { GlobalVar.globalstring = "CreateTask"; ManageTasks mt = new ManageTasks(); mt.Show(); }
private void CurrentTasksDataGrid_CellContentClick(object sender, DataGridViewCellEventArgs e) { int selectedRowIndex = CurrentTasksDataGrid.CurrentCell.RowIndex; if (selectedRowIndex >= 0) { GlobalVar.globalstring = "EditCurrentTask"; currenttasks ct = new currenttasks(); string client_name = CurrentTasksDataGrid.Rows[selectedRowIndex].Cells[1].Value.ToString(); ct.assignee = GlobalVar.app_user; ct.DateOfAssignment = Convert.ToDateTime(CurrentTasksDataGrid.Rows[selectedRowIndex].Cells[0].Value.ToString()); ct.SubjectWithParty = CurrentTasksDataGrid.Rows[selectedRowIndex].Cells[2].Value.ToString(); ct.areaOfWork = CurrentTasksDataGrid.Rows[selectedRowIndex].Cells[3].Value.ToString(); ct.priority = CurrentTasksDataGrid.Rows[selectedRowIndex].Cells[4].Value.ToString(); ct.TaskDescription = CurrentTasksDataGrid.Rows[selectedRowIndex].Cells[5].Value.ToString(); ct.DocumentsSource = CurrentTasksDataGrid.Rows[selectedRowIndex].Cells[6].Value.ToString(); ct.assigner = CurrentTasksDataGrid.Rows[selectedRowIndex].Cells[7].Value.ToString(); ct.status = CurrentTasksDataGrid.Rows[selectedRowIndex].Cells[8].Value.ToString(); ct.remarks = CurrentTasksDataGrid.Rows[selectedRowIndex].Cells[9].Value.ToString(); ct.ID = Convert.ToInt32(CurrentTasksDataGrid.Rows[selectedRowIndex].Cells[10].Value); ct.ClientID = Convert.ToInt32(CurrentTasksDataGrid.Rows[selectedRowIndex].Cells[11].Value); ManageTasks mt = new ManageTasks(ct, client_name); mt.Show(); } }
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { ManageTasks mt = new ManageTasks(); mt.Show(); }
private void tasksToolStripMenuItem_Click(object sender, EventArgs e) { ManageTasks mt = new ManageTasks(); mt.Show(); }