示例#1
0
 private void Sleep_Click(object sender, RoutedEventArgs e)
 {
     PowerManagement.Set(PowerAction.Sleep);
 }
示例#2
0
 private void Restart_Click(object sender, RoutedEventArgs e)
 {
     PowerManagement.Set(PowerAction.Restart);
 }
示例#3
0
 private void Shutdown_Click(object sender, RoutedEventArgs e)
 {
     PowerManagement.Set(PowerAction.Hybernate);
 }
示例#4
0
 private void Logout_Click(object sender, RoutedEventArgs e)
 {
     PowerManagement.Set(PowerAction.Logout);
 }