private async Task OnOpenBankWithHexEditorExecute() { var tempFile = Path.GetTempFileName(); File.WriteAllBytes(tempFile, ChunkBankMemoryStream.ToArray()); _developerService.StartHexEditor(tempFile); }
private async Task OnSaveBankChunkExecute() { try { _saveFileService.Filter = "Binary Files (*.*)|*.*"; if (await _saveFileService.DetermineFileAsync()) { File.WriteAllBytes(_saveFileService.FileName, ChunkBankMemoryStream.ToArray()); } } catch (Exception ex) { Log.Error(ex, "Failed to open file"); } }