private void TaskNameLabel_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            Label          taskNameLabel  = sender as Label;
            Task           task           = taskNameLabel.Tag as Task;
            ViewTaskWindow viewTaskWindow = new ViewTaskWindow(task, this, activeUser);

            this.IsEnabled = false;
            viewTaskWindow.Show();
        }
        private void TaskNameLabel_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            Task task = (sender as Label).Tag as Task;

            task = DatabaseHandler.getInstance().getTaskFromId(task.Id);
            ViewTaskWindow taskWindow = new ViewTaskWindow(task, this, activeUser);

            this.IsEnabled = false;
            taskWindow.Show();
        }