Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Console.WriteLine("Would you like to Shutdown Gizmo OS? Yes/No");
- string ans = Console.ReadLine();
- if (ans.ToLower() == "y" || ans.ToLower() == "yes" || ans.ToLower() == "Yes")
- {
- Sys.Power.Shutdown();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement