private async Task<bool> CheckGameAccessMessage() {
MainWindow MainWindow = App.Kernel.Get<MainWindow>();
return await MainWindow.Dispatcher.Invoke<Task<bool>>(new Func<Task<bool>>(async () => {
MessageDialogResult result = await MainWindow.ShowMessageAsync(LanguageManager.Model.PleaseCloseGame, LanguageManager.Model.GameFilesInUse,
MessageDialogStyle.AffirmativeAndNegative, new MetroDialogSettings() {
AffirmativeButtonText = "OK",
NegativeButtonText = LanguageManager.Model.CancelButton,
ColorScheme = MetroDialogColorScheme.Accented
});
return result == MessageDialogResult.Negative;
}));
}