add Information MessageBox when splitting is done
[GitHub/mt8127/ROM0Split.git] / 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);
                        }
                }