add Information MessageBox when splitting is done
authorJan Altensen <info@stricted.net>
Fri, 21 Dec 2018 03:14:40 +0000 (04:14 +0100)
committerJan Altensen <info@stricted.net>
Fri, 21 Dec 2018 03:14:40 +0000 (04:14 +0100)
Change-Id: I64cd43ffa23ebf6879c774c0036569986be704c4

ROM0Split/Model/MainWindowModel.cs

index 7871d77dcf193ca625dbd31bbd106572abfbd822..c789a55e10e2ebb45d04f2434b189260c525a6f9 100644 (file)
@@ -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);
                        }
                }