private void OnCloseButtonClick(object sender, RoutedEventArgs e) { Game.DB !.DungeonDatabase.SaveCustomDefs(); Close(); }