public void EditTaskButtonClick(object sender, RoutedEventArgs e)
        {
            EditTaskWindow editTaskWindow = new EditTaskWindow(selectedTask);

            editTaskWindow.Show();
            Close();
        }
        //Opens Edit Task Window for Selected Task
        private void EditTaskButtonClick(object sender, RoutedEventArgs e)
        {
            DataStructures.TaskRowStruct selectedTask = new DataStructures.TaskRowStruct();

            if ((sender as Button).Name.Equals(EditTaskButton.Name))
            {
                selectedTask = (DataStructures.TaskRowStruct)TaskList2.SelectedItems[0];
            }
            else if ((sender as Button).Name.Equals(EditTaskButton_ByYou.Name))
            {
                selectedTask = (DataStructures.TaskRowStruct)AssignedByYouList.SelectedItems[0];
            }
            else
            {
                selectedTask = (DataStructures.TaskRowStruct)AssignedToYouList.SelectedItems[0];
            }

            try
            {
                Window editTask = new EditTaskWindow(selectedTask);
                editTask.Show();
            } catch (ArgumentOutOfRangeException)
            {
                MessageBox.Show("Please select a task");
            }
        }