aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/FakeSetupScreen.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS.WinForms/FakeSetupScreen.cs')
-rw-r--r--ShiftOS.WinForms/FakeSetupScreen.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/FakeSetupScreen.cs b/ShiftOS.WinForms/FakeSetupScreen.cs
index cc38d9b..a30b66c 100644
--- a/ShiftOS.WinForms/FakeSetupScreen.cs
+++ b/ShiftOS.WinForms/FakeSetupScreen.cs
@@ -191,6 +191,9 @@ So make sure your password is secure enough that it can't be guessed, but easy f
this.CanClose = true;
this.Close();
break;
+ case 10:
+ pglogin.BringToFront();
+ break;
}
}
@@ -262,5 +265,12 @@ So make sure your password is secure enough that it can't be guessed, but easy f
currentPage++;
SetupUI();
}
+
+ private void button1_Click(object sender, EventArgs e)
+ {
+ ShiftOS.Objects.ShiftFS.Utils.Delete(Paths.GetPath("user.dat"));
+ System.IO.File.WriteAllText(Paths.SaveFile, ShiftOS.Objects.ShiftFS.Utils.ExportMount(0));
+ Application.Restart();
+ }
}
}