nkit support

This commit is contained in:
NicoAICP 2020-04-22 02:24:35 +02:00
parent d53100fb87
commit 2b3259cdb5
11 changed files with 211 additions and 57 deletions

View file

@ -7,6 +7,7 @@ using System.IO.Compression;
using System.Linq;
using System.Net;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
@ -161,7 +162,7 @@ namespace UWUVCI_AIO_WPF
}
else
{
neededspace = gamesize * 2 + 7000000000;
neededspace = 15000000000;
}
if (freeSpaceInBytes < neededspace)
{
@ -230,7 +231,11 @@ namespace UWUVCI_AIO_WPF
}
else if (e.Message.Contains("12G"))
{
MessageBox.Show($"\nPlease make sure to have atleast {FormatBytes(neededspace + 3000000000)} of storage left on the drive where you stored the Injector.", "Injection Failed", MessageBoxButton.OK, MessageBoxImage.Error);
MessageBox.Show($"\nPlease make sure to have atleast {FormatBytes(15000000000)} of storage left on the drive where you stored the Injector.", "Injection Failed", MessageBoxButton.OK, MessageBoxImage.Error);
}else if (e.Message.Contains("nkit"))
{
MessageBox.Show($"\nPlease make sure that you have a genuine NKIT ROM.", "Injection Failed", MessageBoxButton.OK, MessageBoxImage.Error);
}
else
{
@ -297,30 +302,57 @@ namespace UWUVCI_AIO_WPF
private static void WII(string romPath, MainViewModel mvm)
{
string savedir = Directory.GetCurrentDirectory();
if (new FileInfo(romPath).Extension.Contains("wbfs"))
if (romPath.Contains("nkit.iso"))
{
mvm.msg = "Converting WBFS to ISO...";
using (Process toiso = new Process())
{
mvm.msg = "Converting NKIT to ISO";
if (!mvm.debug)
{
toiso.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
// toiso.StartInfo.CreateNoWindow = true;
toiso.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
// toiso.StartInfo.CreateNoWindow = true;
}
toiso.StartInfo.FileName = Path.Combine(toolsPath, "wbfs_file.exe");
toiso.StartInfo.Arguments = $"\"{romPath}\" convert \"{Path.Combine(tempPath, "pre.iso")}\" -t";
toiso.StartInfo.FileName = Path.Combine(toolsPath, "ConvertToIso.exe");
toiso.StartInfo.Arguments = $"\"{romPath}\"";
toiso.Start();
toiso.WaitForExit();
mvm.Progress = 15;
if(!File.Exists(Path.Combine(toolsPath, "out.iso")))
{
throw new Exception("nkit");
}
File.Move(Path.Combine(toolsPath, "out.iso"), Path.Combine(tempPath, "pre.iso"));
mvm.Progress = 15;
}
}
else if (new FileInfo(romPath).Extension.Contains("iso"))
else
{
mvm.msg = "Copying ROM...";
File.Copy(romPath, Path.Combine(tempPath, "pre.iso"));
mvm.Progress = 15;
if (new FileInfo(romPath).Extension.Contains("wbfs"))
{
mvm.msg = "Converting WBFS to ISO...";
using (Process toiso = new Process())
{
if (!mvm.debug)
{
toiso.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
// toiso.StartInfo.CreateNoWindow = true;
}
toiso.StartInfo.FileName = Path.Combine(toolsPath, "wbfs_file.exe");
toiso.StartInfo.Arguments = $"\"{romPath}\" convert \"{Path.Combine(tempPath, "pre.iso")}\" -t";
toiso.Start();
toiso.WaitForExit();
mvm.Progress = 15;
}
}
else if (new FileInfo(romPath).Extension.Contains("iso"))
{
mvm.msg = "Copying ROM...";
File.Copy(romPath, Path.Combine(tempPath, "pre.iso"));
mvm.Progress = 15;
}
}
using (Process trimm = new Process())
{
if (!mvm.debug)
@ -492,8 +524,61 @@ namespace UWUVCI_AIO_WPF
}
mvm.Progress = 40;
mvvm.msg = "Injecting GameCube Game into NintendontBase...";
File.Copy(romPath, Path.Combine(tempPath, "TempBase", "files", "game.iso"));
if (mvm.gc2rom != "" && File.Exists(mvm.gc2rom)) File.Copy(mvm.gc2rom, Path.Combine(tempPath, "TempBase", "files", "disc2.iso"));
if (romPath.Contains("nkit.iso"))
{
using (Process wit = new Process())
{
if (!mvm.debug)
{
wit.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
}
wit.StartInfo.FileName = Path.Combine(toolsPath, "ConvertToIso.exe");
wit.StartInfo.Arguments = $"\"{romPath}\"";
wit.Start();
wit.WaitForExit();
if(!File.Exists(Path.Combine(toolsPath, "out.iso")))
{
throw new Exception("nkit");
}
File.Move(Path.Combine(toolsPath, "out.iso"), Path.Combine(tempPath, "TempBase", "files", "game.iso"));
}
}
else
{
File.Copy(romPath, Path.Combine(tempPath, "TempBase", "files", "game.iso"));
}
if (mvm.gc2rom != "" && File.Exists(mvm.gc2rom))
{
if (mvm.gc2rom.Contains("nkit.iso"))
{
using (Process wit = new Process())
{
if (!mvm.debug)
{
wit.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
}
wit.StartInfo.FileName = Path.Combine(toolsPath, "ConvertToIso.exe");
wit.StartInfo.Arguments = $"\"{romPath}\"";
wit.Start();
wit.WaitForExit();
if (!File.Exists(Path.Combine(toolsPath, "out.iso")))
{
throw new Exception("nkit");
}
File.Move(Path.Combine(toolsPath, "out.iso"), Path.Combine(tempPath, "TempBase", "files", "disc2.iso"));
}
}
else
{
File.Copy(mvm.gc2rom, Path.Combine(tempPath, "TempBase", "files", "disc2.iso"));
}
}
using(Process wit = new Process())
{
if (!mvm.debug)
@ -843,12 +928,13 @@ namespace UWUVCI_AIO_WPF
public static void Loadiine(string gameName)
{
if (gameName == null || gameName == string.Empty) gameName = "NoName";
Regex reg = new Regex("[^a-zA-Z0-9 é -]");
//string outputPath = Path.Combine(Properties.Settings.Default.InjectionPath, gameName);
string outputPath = Path.Combine(Properties.Settings.Default.OutPath, $"[LOADIINE]{gameName}");
string outputPath = Path.Combine(Properties.Settings.Default.OutPath, $"[LOADIINE]{reg.Replace(gameName,"")}");
int i = 0;
while (Directory.Exists(outputPath))
{
outputPath = Path.Combine(Properties.Settings.Default.OutPath, $"[LOADIINE]{gameName}_{i}");
outputPath = Path.Combine(Properties.Settings.Default.OutPath, $"[LOADIINE]{reg.Replace(gameName, "")}_{i}");
i++;
}
@ -864,14 +950,14 @@ namespace UWUVCI_AIO_WPF
mvm.InjcttoolCheck();
mvm.Progress = 20;
mvm.msg = "Creating Outputfolder...";
Regex reg = new Regex("[^a-zA-Z0-9 -]");
if (gameName == null || gameName == string.Empty) gameName = "NoName";
//string outputPath = Path.Combine(Properties.Settings.Default.InjectionPath, gameName);
string outputPath = Path.Combine(Properties.Settings.Default.OutPath, $"[WUP]{gameName}");
string outputPath = Path.Combine(Properties.Settings.Default.OutPath, $"[WUP]{reg.Replace(gameName,"")}");
int i = 0;
while (Directory.Exists(outputPath))
{
outputPath = Path.Combine(Properties.Settings.Default.OutPath, $"[WUP]{gameName}_{i}");
outputPath = Path.Combine(Properties.Settings.Default.OutPath, $"[WUP]{reg.Replace(gameName,"")}_{i}");
i++;
}
mvm.Progress = 40;
@ -1064,9 +1150,10 @@ namespace UWUVCI_AIO_WPF
return outputPath;
}
// This function changes TitleID, ProductCode and GameName in app.xml (ID) and meta.xml (ID, ProductCode, Name)
private static void EditXML(string gameName, int index, string code)
private static void EditXML(string gameNameOr, int index, string code)
{
Regex reg = new Regex("[^a-zA-Z0-9 é -]");
string gameName = reg.Replace(String.Copy(gameNameOr),"");
string metaXml = Path.Combine(baseRomPath, "meta", "meta.xml");
string appXml = Path.Combine(baseRomPath, "code", "app.xml");
Random random = new Random();

View file

@ -43,7 +43,11 @@ namespace UWUVCI_AIO_WPF.Classes
"tga2png.exe",
"iconTex.tga",
"wii-vmc.exe",
"bootTvTex.png"
"bootTvTex.png",
"ConvertToISO.exe",
"NKit.dll",
"SharpCompress.dll",
"NKit.dll.config"
};
public static bool DoesToolsFolderExist()

View file

@ -729,7 +729,8 @@ namespace UWUVCI_AIO_WPF
}
else
{
Regex reg = new Regex("[^a-zA-Z0-9 é -]");
gameConfiguration.GameName = reg.Replace(gameConfiguration.GameName, "");
Task.Run(() => { Injection.Packing(GameConfiguration.GameName, this); });
DownloadWait dw = new DownloadWait("Packing Inject - Please Wait", "", this);
@ -1198,12 +1199,12 @@ namespace UWUVCI_AIO_WPF
}
else
{
dialog.Filter = "Wii ROM (*.iso; *.wbfs) | *.iso; *.wbfs";
dialog.Filter = "Wii ROM (*.nkit.iso; *.iso; *.wbfs) | *.nkit.iso; *.iso; *.wbfs";
}
break;
case GameConsoles.GCN:
dialog.Filter = "GCN ROM (*.iso; *.gcm) | *.iso; *.gcm";
dialog.Filter = "GCN ROM (*.nkit.iso; *.iso; *.gcm) | *.nkit.iso; *.iso; *.gcm";
break;
}
}

View file

@ -241,10 +241,19 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
private void gn_KeyUp(object sender, KeyEventArgs e)
{
Regex reg = new Regex("[*'\",_&#^@:;?!<>|µ~#°²³´`éⓇ©™]");
/*Regex reg = new Regex("[^a-zA-Z0-9 é -]");
string backup = string.Copy(gn.Text);
gn.Text = reg.Replace(gn.Text, string.Empty);
gn.CaretIndex = gn.Text.Length;
gn.ScrollToHorizontalOffset(double.MaxValue);
if (gn.Text != backup)
{
gn.ScrollToHorizontalOffset(double.MaxValue);
}*/
}
private void rbRDF_Click(object sender, RoutedEventArgs e)

View file

@ -210,14 +210,23 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
return false;
}
private void gn_KeyUp(object sender, KeyEventArgs e)
{
Regex reg = new Regex("[*'\",_&#^@:;?!<>|µ~#°²³´`éⓇ©™]");
gn.Text = reg.Replace(gn.Text, string.Empty);
gn.CaretIndex = gn.Text.Length;
gn.ScrollToHorizontalOffset(double.MaxValue);
/*Regex reg = new Regex("[^a-zA-Z0-9 é -]");
string backup = string.Copy(gn.Text);
gn.Text = reg.Replace(gn.Text, string.Empty);
gn.CaretIndex = gn.Text.Length;
if (gn.Text != backup)
{
gn.ScrollToHorizontalOffset(double.MaxValue);
}*/
}
public void reset()
{

View file

@ -231,10 +231,19 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
private void gn_KeyUp(object sender, KeyEventArgs e)
{
Regex reg = new Regex("[*'\",_&#^@:;?!<>|µ~#°²³]");
gn.Text = reg.Replace(gn.Text, string.Empty);
gn.CaretIndex = gn.Text.Length;
gn.ScrollToHorizontalOffset(double.MaxValue);
/*Regex reg = new Regex("[^a-zA-Z0-9 é -]");
string backup = string.Copy(gn.Text);
gn.Text = reg.Replace(gn.Text, string.Empty);
gn.CaretIndex = gn.Text.Length;
if (gn.Text != backup)
{
gn.ScrollToHorizontalOffset(double.MaxValue);
}*/
}
private void CheckBox_Click_1(object sender, RoutedEventArgs e)

View file

@ -233,10 +233,19 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
private void gn_KeyUp(object sender, KeyEventArgs e)
{
Regex reg = new Regex("[*'\",_&#^@:;?!<>|µ~#°²³´`éⓇ©™]");
/*Regex reg = new Regex("[^a-zA-Z0-9 é -]");
string backup = string.Copy(gn.Text);
gn.Text = reg.Replace(gn.Text, string.Empty);
gn.CaretIndex = gn.Text.Length;
gn.ScrollToHorizontalOffset(double.MaxValue);
if (gn.Text != backup)
{
gn.ScrollToHorizontalOffset(double.MaxValue);
}*/
}
public void reset()
{

View file

@ -214,10 +214,18 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
private void gn_KeyUp(object sender, KeyEventArgs e)
{
Regex reg = new Regex("[*'\",_&#^@:;?!<>|µ~#°²³´`éⓇ©™]");
gn.Text = reg.Replace(gn.Text, string.Empty);
gn.CaretIndex = gn.Text.Length;
gn.ScrollToHorizontalOffset(double.MaxValue);
/*Regex reg = new Regex("[^a-zA-Z0-9 é -]");
string backup = string.Copy(gn.Text);
gn.Text = reg.Replace(gn.Text, string.Empty);
gn.CaretIndex = gn.Text.Length;
if (gn.Text != backup)
{
gn.ScrollToHorizontalOffset(double.MaxValue);
}*/
}
private void gn_KeyUp_1(object sender, KeyEventArgs e)

View file

@ -14,7 +14,7 @@
<TextBox materialDesign:HintAssist.Hint="BOOTDRCTEX (OPTIONAL)" x:Name="drc" Style="{StaticResource MaterialDesignFloatingHintTextBox}" ToolTip="Needs a BitDepth of 24 and a Dimension of 854x480" Margin="10,272,157,166" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" IsReadOnly="True" Focusable="False" Text="{Binding GameConfiguration.TGADrc.ImgPath}" Cursor="Help" TextChanged="drc_TextChanged"/>
<TextBox materialDesign:HintAssist.Hint="BOOTTVTEX" x:Name="tv" Style="{StaticResource MaterialDesignFloatingHintTextBox}" ToolTip="Needs a BitDepth of 24 and a Dimension of 1280x720" Margin="10,227,157,211" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" IsReadOnly="True" Focusable="False" Text="{Binding GameConfiguration.TGATv.ImgPath}" Cursor="Help" TextChanged="tv_TextChanged"/>
<TextBox materialDesign:HintAssist.Hint="BOOTLOGOTEX (OPTIONAL)" ToolTip="Needs a BitDepth of 32 and a Dimension of 170x42" x:Name="log" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,317,157,121" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" IsReadOnly="True" Focusable="False" Cursor="Help" Text="{Binding GameConfiguration.TGALog.ImgPath}" TextChanged="log_TextChanged"/>
<TextBox materialDesign:HintAssist.Hint="GAME NAME" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,369,157,69" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" Text="{Binding GameConfiguration.GameName}" x:Name="gn" KeyUp="gn_KeyUp" MaxLength="250"/>
<TextBox materialDesign:HintAssist.Hint="GAME NAME" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,369,157,69" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" Text="{Binding GameConfiguration.GameName}" x:Name="gn" KeyUp="gn_KeyUp" KeyDown="gn_KeyDown" MaxLength="250"/>
<Button Content="Inject" HorizontalAlignment="Left" Margin="506,413,0,0" VerticalAlignment="Top" Width="127" Click="InjectGame" IsEnabled="{Binding CanInject}"/>
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,329,0,0" VerticalAlignment="Top" Width="127" Click="Set_LogoTex"/>
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,239,0,0" VerticalAlignment="Top" Width="127" Click="Set_TvTex"/>

View file

@ -25,6 +25,7 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
public partial class WiiConfig : Page, IDisposable
{
MainViewModel mvm;
bool dont = true;
public WiiConfig()
{
InitializeComponent();
@ -251,10 +252,19 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
private void gn_KeyUp(object sender, KeyEventArgs e)
{
Regex reg = new Regex("[*'\",_&#^@:;?!<>|µ~#°²³]");
gn.Text = reg.Replace(gn.Text, string.Empty);
gn.CaretIndex = gn.Text.Length;
gn.ScrollToHorizontalOffset(double.MaxValue);
/*Regex reg = new Regex("[^a-zA-Z0-9 é -]");
string backup = string.Copy(gn.Text);
gn.Text = reg.Replace(gn.Text, string.Empty);
gn.CaretIndex = gn.Text.Length;
if (gn.Text != backup)
{
gn.ScrollToHorizontalOffset(double.MaxValue);
}*/
}
private void gn_KeyUp_1(object sender, KeyEventArgs e)
@ -372,5 +382,13 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
logIMG.Visibility = Visibility.Hidden;
}
}
private void gn_KeyDown(object sender, KeyEventArgs e)
{
if (Keyboard.IsKeyDown(Key.Up) || Keyboard.IsKeyDown(Key.Down)|| Keyboard.IsKeyDown(Key.Left) || Keyboard.IsKeyDown(Key.Right))
{
dont = false;
}
}
}
}

View file

@ -9,23 +9,23 @@
Title="SettingsFrame">
<Grid Margin="0,2,0,-2">
<TextBlock HorizontalAlignment="Left" Margin="325,228,0,0" TextWrapping="Wrap" Text="Set Injector Paths:" VerticalAlignment="Top" FontSize="20" />
<TextBlock HorizontalAlignment="Left" Margin="325,216,0,0" TextWrapping="Wrap" Text="Set Injector Paths:" VerticalAlignment="Top" FontSize="20" />
<TextBlock HorizontalAlignment="Left" Margin="325,482,0,0" TextWrapping="Wrap" Text="Enter CommonKey:" VerticalAlignment="Top" FontSize="20" Visibility="Hidden" />
<TextBlock HorizontalAlignment="Left" Margin="325,541,0,0" TextWrapping="Wrap" Text="Enter TitleKeys:" VerticalAlignment="Top" FontSize="20" Visibility="Hidden" />
<TextBlock HorizontalAlignment="Left" Margin="325,67,0,0" TextWrapping="Wrap" Text="Injector Theme:" VerticalAlignment="Top" FontSize="20" Visibility="Hidden" />
<RadioButton Content="Light Theme" HorizontalAlignment="Left" Margin="494,74,0,0" VerticalAlignment="Top" GroupName="theme" x:Name="rblight" IsChecked="True" Visibility="Hidden"/>
<Button Content="Change Theme" HorizontalAlignment="Left" Margin="605,67,0,0" VerticalAlignment="Top" Width="145" RenderTransformOrigin="-0.099,0.116" Visibility="Hidden"/>
<Button Content="Open CK Menu" HorizontalAlignment="Left" Margin="605,478,0,0" VerticalAlignment="Top" Width="145" RenderTransformOrigin="-0.099,0.116" Click="Button_Click_1" Visibility="Hidden"/>
<Button Content="Open Path Menu" HorizontalAlignment="Left" Margin="605,223,0,0" VerticalAlignment="Top" Width="145" RenderTransformOrigin="-0.099,0.116" Click="Button_Click_2"/>
<Button Content="Open Path Menu" HorizontalAlignment="Left" Margin="605,211,0,0" VerticalAlignment="Top" Width="145" RenderTransformOrigin="-0.099,0.116" Click="Button_Click_2"/>
<Button Content="Open TK Menu" HorizontalAlignment="Left" Margin="605,537,0,0" VerticalAlignment="Top" Width="145" RenderTransformOrigin="-0.099,0.116" Click="Button_Click" Visibility="Hidden"/>
<Button Content="Update Base Files" HorizontalAlignment="Left" Margin="605,266,0,0" VerticalAlignment="Top" Width="145" RenderTransformOrigin="-0.099,0.116" Click="Button_Click_3"/>
<Button Content="Start N64 Virtual Console INI Creator" HorizontalAlignment="Left" Margin="325,309,0,0" VerticalAlignment="Top" Width="425" RenderTransformOrigin="-0.099,0.116" Click="Button_Click_4"/>
<Button Content="Update Base Files" HorizontalAlignment="Left" Margin="605,254,0,0" VerticalAlignment="Top" Width="145" RenderTransformOrigin="-0.099,0.116" Click="Button_Click_3"/>
<Button Content="Start N64 Virtual Console INI Creator" HorizontalAlignment="Left" Margin="325,297,0,0" VerticalAlignment="Top" Width="425" RenderTransformOrigin="-0.099,0.116" Click="Button_Click_4"/>
<Button Content="Credits" HorizontalAlignment="Left" Margin="1040,558,0,0" VerticalAlignment="Top" Width="80" Click="Button_Click_5"/>
<Button Content="Update Tools" HorizontalAlignment="Left" Margin="483,266,0,0" VerticalAlignment="Top" Width="117" RenderTransformOrigin="-0.099,0.116" Click="Button_Click_7"/>
<Button Content="Check For Updates" HorizontalAlignment="Left" Margin="597,350,0,0" VerticalAlignment="Top" Width="153" RenderTransformOrigin="-0.099,0.116" Click="Button_Click_6"/>
<Button Content="Update Tools" HorizontalAlignment="Left" Margin="483,254,0,0" VerticalAlignment="Top" Width="117" RenderTransformOrigin="-0.099,0.116" Click="Button_Click_7"/>
<Button Content="Check For Updates" HorizontalAlignment="Left" Margin="597,342,0,0" VerticalAlignment="Top" Width="153" RenderTransformOrigin="-0.099,0.116" Click="Button_Click_6"/>
<TextBlock HorizontalAlignment="Left" Margin="1022,10,0,0" TextWrapping="Wrap" Text="v2.1 BETA" VerticalAlignment="Top" FontSize="20" Width="98"/>
<Button Content="Reset TitleKeys" HorizontalAlignment="Left" Margin="325,266,0,0" VerticalAlignment="Top" Width="153" RenderTransformOrigin="-0.099,0.116" Click="Button_Click_8"/>
<Button Content="Start Nintendont Config Tool" HorizontalAlignment="Left" Margin="325,350,0,0" VerticalAlignment="Top" Width="267" RenderTransformOrigin="-0.099,0.116" Click="Button_Click_9"/>
<Button Content="Reset TitleKeys" HorizontalAlignment="Left" Margin="325,254,0,0" VerticalAlignment="Top" Width="153" RenderTransformOrigin="-0.099,0.116" Click="Button_Click_8"/>
<Button Content="Start Nintendont Config Tool" HorizontalAlignment="Left" Margin="325,342,0,0" VerticalAlignment="Top" Width="267" RenderTransformOrigin="-0.099,0.116" Click="Button_Click_9"/>
<Button Content="Reset Don't show this again Option" HorizontalAlignment="Left" Margin="410,387,0,0" VerticalAlignment="Top" Width="266" RenderTransformOrigin="-0.099,0.116" Click="Button_Click_10"/>
</Grid>