private void OnLogout() { if (WindowService.ShowMessage($"Do you really want to logout?", "Warning") ?? false) { ControlPCHelper.LogOut(); } }
private void OnShutdown() { if (WindowService.ShowMessage($"Do you really want to shutdown your computer?", "Warning") ?? false) { ControlPCHelper.ShutdownPC(); } }