private void AddWorkButton_Click(object sender, RoutedEventArgs e)
        {
            var window = new WorkWindow(null);

            if (window.ShowDialog() ?? false)
            {
                UpdateWorks();
            }
        }
        private void WorksListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            var selectedWork = WorksListBox.SelectedItem as Work;

            if (selectedWork != null)
            {
                var window = new WorkWindow(selectedWork);
                if (window.ShowDialog() ?? false)
                {
                    UpdateWorks();
                }

                WorksListBox.UnselectAll();
            }
        }