private void closeButton_Click(object sender, RoutedEventArgs e) { listBox.Visibility = Visibility.Collapsed; closeButton.IsEnabled = false; WarFile.Unload(); UpdateStatusText(); }