private void dataGridViewTasks_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (TaskController.checkStatus(taskId)) { var nt = new TaskModal(role, "info", taskId, projectId); nt.ShowDialog(); } else { MessageBox.Show("Add Person for this Tasks"); } }
private void buttonNew_Click_1(object sender, EventArgs e) { try { var nt = new TaskModal(role, "new", userId, "pf"); nt.ShowDialog(); } catch (Exception) { MessageBox.Show("Add Failed"); } finally { userCheck(role); } }
private void buttonTaskEdit_Click(object sender, EventArgs e) { try { var nt = new TaskModal(role, "edit", taskId, projectId); nt.ShowDialog(); } catch (Exception) { MessageBox.Show("Choose Task"); } finally { listPersonelTasks(projectId); } }
private void buttonTaskNew_Click(object sender, EventArgs e) { try { var nt = new TaskModal(role, "new", projectId); nt.ShowDialog(); } catch (Exception) { MessageBox.Show("Failed"); } finally { listPersonelTasks(projectId); } }
private void buttonEdit_Click(object sender, EventArgs e) { setProjectId(); try { var nt = new TaskModal(role, "edit", userId, taskId, projectId, "pf"); nt.ShowDialog(); } catch (Exception) { MessageBox.Show("Choose Task"); } finally { userCheck(role); } }
private void dataGridViewTasks_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { var tm = new TaskModal(role, "info", userId, taskId, projectId, "pf"); tm.ShowDialog(); }