public override void HandleTaskEvent(object selectedItem)
        {
            Hide();
            var taskForm = new EmployeeTasksForm((ProjectClass)selectedItem);

            taskForm.ShowDialog();
            Close();
        }
Exemplo n.º 2
0
        private void CloseDialog()
        {
            Hide();
            var employeeTasks = new EmployeeTasksForm(SelectedProject);

            employeeTasks.ShowDialog();
            Close();
        }
Exemplo n.º 3
0
 public override void HandleEditEvent(object selectedItem)
 {
     if (((TaskClass)selectedItem).TaskState == TaskState.Done || ((TaskClass)selectedItem).TaskState == TaskState.Canceled)
     {
         MessageBox.Show("Nije moguce editovati selektovani task, jer je vec izvrsen ili otkazan.");
         Hide();
         var tasksForm = new EmployeeTasksForm(SelectedProject);
         tasksForm.ShowDialog();
         Close();
     }
     else
     {
         Hide();
         var editTask = new EditTaskForm((TaskClass)selectedItem, SelectedProject);
         editTask.ShowDialog();
         Close();
     }
 }