Beispiel #1
0
 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");
     }
 }
Beispiel #2
0
 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);
     }
 }
Beispiel #3
0
 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);
     }
 }
Beispiel #4
0
 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);
     }
 }
Beispiel #5
0
 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);
     }
 }
Beispiel #6
0
        private void dataGridViewTasks_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            var tm = new TaskModal(role, "info", userId, taskId, projectId, "pf");

            tm.ShowDialog();
        }