private void BtnTaskDetail_Click(object sender, RoutedEventArgs e)
        {
            if (lstTaskByBoard.SelectedIndex == -1)
            {
                MessageBox.Show("Please select a Task");
                return;
            }

            Task          task   = SelectionTask();
            AddTaskWindow window = new AddTaskWindow(_currentUser, true, task, false, _currentNinjects);

            window.ShowDialog();
        }
        private void BtnAddTask_Click(object sender, RoutedEventArgs e)
        {
            if (cmbBoardList.Items.Count == 0)
            {
                MessageBox.Show("Task cannot be added without Task List");
                return;
            }
            AddTaskWindow window = new AddTaskWindow(_currentUser, false, null, false, _currentNinjects);

            window.ShowDialog();

            ShowAllTask();
        }
        private void BtnTaskEdit_Click(object sender, RoutedEventArgs e)
        {
            Task task = SelectionTask();

            if (task == null)
            {
                return;
            }
            AddTaskWindow window = new AddTaskWindow(_currentUser, false, task, true, _currentNinjects);

            window.ShowDialog();

            RefreshEditAndFinish(task);
            ShowAllTask();
        }