From aa45c0e090d370711353060a86524a23a3c47e7d Mon Sep 17 00:00:00 2001
From: AUnicornWithNoLife
<55228370+AUnicornWithNoLife@users.noreply.github.com>
Date: Mon, 13 Feb 2023 12:39:34 +0000
Subject: [PATCH] work
---
Tranquility/MainWindow.xaml | 4 ++--
Tranquility/MainWindow.xaml.cs | 18 ++++++++++++++++++
2 files changed, 20 insertions(+), 2 deletions(-)
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;
}
}
}