InstanceSelectionWindow(List <Gamelet> instances)
        {
            InitializeComponent();
            InstanceList.ItemsSource = instances;
            InstanceList.Focus();

            // Force sorting by the Name column (DisplayName property) in ascending order.
            var dataView = CollectionViewSource.GetDefaultView(InstanceList.ItemsSource);

            dataView.SortDescriptions.Add(
                new SortDescription("DisplayName", ListSortDirection.Ascending));
        }