Restart Operating System
System.Diagnostics.Process.Start("shutdown.exe","-r");// Reastart after Defulte time
System.Diagnostics.Process.Start("shutdown.exe","-r -t 60");// Reastart after 60 second
-----------------------------------------------------------------------------------------------------------------------------
Shutdown Operating System
System.Diagnostics.Process.Start("shutdown.exe", "-s ");// Shutdown after defulte time
System.Diagnostics.Process.Start("shutdown.exe", "-s -t 60");//after 60 second
-----------------------------------------------------------------------------------------------------------------------------
Abort Actions
System.Diagnostics.Process.Start("shutdown.exe", "-a"); //Abort processممكن تحط الكود تحت Button او اي حاجة ويشتغل زي الفل ;)