示例#1
0
 private void lockWorkstationToolStripMenuItem_Click(object sender, EventArgs e)
 {
     SystemShutdown.LockWorkStation();
 }
示例#2
0
 private void initiateShutdownToolStripMenuItem_Click(object sender, EventArgs e)
 {
     SystemShutdown.InitiateShutdown(null, "Need to close this baby down", TimeSpan.FromSeconds(30));
 }
示例#3
0
 private void abortShutdownToolStripMenuItem_Click(object sender, EventArgs e)
 {
     SystemShutdown.AbortShutdown();
 }
示例#4
0
 private void exitWindowsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     SystemShutdown.ExitWindows();
 }
 /// <summary>Called when the system is shutting down or the user is logging off.</summary>
 /// <param name="args">The arguments of the event.</param>
 public void OnSystemShutdown(WPFBootstrapperEventArgs <Wix.SystemShutdownEventArgs> args)
 {
     SystemShutdown?.Invoke(this, args);
 }