diff --git a/Tranquility/MainWindow.xaml b/Tranquility/MainWindow.xaml
index eab3cbe..9b5d7fa 100644
--- a/Tranquility/MainWindow.xaml
+++ b/Tranquility/MainWindow.xaml
@@ -17,8 +17,8 @@
-
-
+
+
diff --git a/Tranquility/MainWindow.xaml.cs b/Tranquility/MainWindow.xaml.cs
index 40b4489..d2ca883 100644
--- a/Tranquility/MainWindow.xaml.cs
+++ b/Tranquility/MainWindow.xaml.cs
@@ -55,9 +55,27 @@ namespace Tranquility
if (files == null)
throw new Exception("Please select files before running");
+ Progress.Value = 10;
+
ReadWriteTexture2D[] images = Cupola.Cupola.Load(files);
+ Progress.Value = 30;
+
finalImage = Cupola.Cupola.RunSingle(images);
+
+ Progress.Value = 90;
+
+ CommonSaveFileDialog saveFileDialog = new CommonSaveFileDialog();
+ saveFileDialog.DefaultExtension = ".jpg";
+ saveFileDialog.EnsurePathExists = true;
+ CommonFileDialogResult result = saveFileDialog.ShowDialog();
+
+ if (result != CommonFileDialogResult.Ok)
+ throw new Exception("please set location valid OKAY");
+
+ finalImage.Save(saveFileDialog.FileName);
+
+ Progress.Value = 100;
}
}
}