From: Jan Altensen Date: Fri, 21 Dec 2018 03:14:40 +0000 (+0100) Subject: add Information MessageBox when splitting is done X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3b8e40a11c22fc291e5d93fc21e617cb70cd3ce6;p=GitHub%2Fmt8127%2FROM0Split.git add Information MessageBox when splitting is done Change-Id: I64cd43ffa23ebf6879c774c0036569986be704c4 --- diff --git a/ROM0Split/Model/MainWindowModel.cs b/ROM0Split/Model/MainWindowModel.cs index 7871d77..c789a55 100644 --- a/ROM0Split/Model/MainWindowModel.cs +++ b/ROM0Split/Model/MainWindowModel.cs @@ -110,11 +110,7 @@ namespace ROM0Split.Model UInt64 remaining = size; int bytesRead; while (remaining > 0 && (bytesRead = stream.Read(buffer, 0, - int.Parse( - Math.Min(remaining, BUFFER_SIZE).ToString() - ) - ) - ) > 0) + int.Parse(Math.Min(remaining, BUFFER_SIZE).ToString()))) > 0) { outFile.Write(buffer, 0, bytesRead); remaining -= (uint)bytesRead; @@ -125,6 +121,8 @@ namespace ROM0Split.Model outFile.Dispose(); Console.WriteLine(node["partition_index"]); } + + MessageBox.Show("Splitting Done", "Information", MessageBoxButton.OK, MessageBoxImage.Information); } }