Remove old code
parent
171e01cf08
commit
de1e53f237
|
@ -272,111 +272,4 @@
|
|||
await _confirmRef.CloseAsync();
|
||||
}
|
||||
}
|
||||
|
||||
private async void LookupGameMetadata()
|
||||
{
|
||||
/*var parameters = new DialogParameters
|
||||
{
|
||||
["GameTitle"] = Game.Title
|
||||
};
|
||||
|
||||
var dialog = await DialogService.ShowAsync<GameMetadataLookup>("Game Lookup", parameters);
|
||||
var result = await dialog.Result;
|
||||
|
||||
if (!result.Canceled)
|
||||
{
|
||||
var info = result.Data as Game;
|
||||
|
||||
Game.Title = info.Title;
|
||||
Game.Description = info.Description;
|
||||
Game.ReleasedOn = info.ReleasedOn;
|
||||
Game.MultiplayerModes = info.MultiplayerModes;
|
||||
Game.Developers = info.Developers;
|
||||
Game.Publishers = info.Publishers;
|
||||
Game.Genres = info.Genres;
|
||||
Game.Tags = info.Tags;
|
||||
Game.Singleplayer = info.Singleplayer;
|
||||
|
||||
StateHasChanged();
|
||||
}*/
|
||||
}
|
||||
|
||||
private async void UploadArchive()
|
||||
{
|
||||
/*var parameters = new DialogParameters
|
||||
{
|
||||
["GameId"] = Game.Id
|
||||
};
|
||||
|
||||
var dialog = await DialogService.ShowAsync<ArchiveUploader>("Upload Archive", parameters);
|
||||
|
||||
var result = await dialog.Result;
|
||||
|
||||
await GameService.Context.Entry(Game).Collection(nameof(Game.Archives)).LoadAsync();
|
||||
|
||||
StateHasChanged();*/
|
||||
}
|
||||
|
||||
private async void BrowseArchive(Archive archive)
|
||||
{
|
||||
/*var parameters = new DialogParameters
|
||||
{
|
||||
["ArchiveId"] = archive.Id
|
||||
};
|
||||
|
||||
var dialog = await DialogService.ShowAsync<ArchiveBrowserDialog>("Archive Browser", parameters);*/
|
||||
}
|
||||
|
||||
private async void DeleteArchive(Archive archive)
|
||||
{
|
||||
/*bool? result = await DialogService.ShowMessageBox(
|
||||
"Delete Archive?",
|
||||
"Do you really want to delete this archive? You will not be able to recover it later.",
|
||||
"Delete",
|
||||
"Cancel"
|
||||
);
|
||||
|
||||
if (result == true)
|
||||
await ArchiveService.Delete(archive);
|
||||
|
||||
StateHasChanged();*/
|
||||
}
|
||||
|
||||
private async void EditScript(Script script = null)
|
||||
{
|
||||
/*if (script == null)
|
||||
script = new Script()
|
||||
{
|
||||
GameId = Game.Id,
|
||||
Game = Game
|
||||
};
|
||||
|
||||
var parameters = new DialogParameters
|
||||
{
|
||||
["Script"] = script
|
||||
};
|
||||
|
||||
var dialog = await DialogService.ShowAsync<ScriptEditorDialog>("Edit Script", parameters);
|
||||
|
||||
var result = await dialog.Result;
|
||||
|
||||
await GameService.Context.Entry(Game).Collection(nameof(Game.Archives)).LoadAsync();
|
||||
|
||||
StateHasChanged();*/
|
||||
}
|
||||
|
||||
private async void DeleteScript(Script script)
|
||||
{
|
||||
/*bool? result = await DialogService.ShowMessageBox(
|
||||
"Delete Script",
|
||||
"Do you really want to delete this script? You will not be able to recover it later.",
|
||||
"Delete",
|
||||
"Cancel"
|
||||
);
|
||||
|
||||
if (result == true)
|
||||
await ScriptService.Delete(script);
|
||||
|
||||
StateHasChanged();*/
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue