如何在 C# 智能设备应用程序中实现注销功能?

发布于 2024-08-23 23:33:28 字数 406 浏览 7 评论 0原文

我正在用 C# 开发智能设备应用程序。它是一个窗口应用程序。在此应用程序中,我使用登录表单来验证用户身份。只有经过身份验证的用户才能登录系统。在此应用程序中,我调用驻留在另一台计算机上的 java Web 服务。我正在传递手机号码和mu 应用程序的登录表单到 java web 服务的密码。 java web 服务在身份验证成功后返回用户 ID。我将此用户 ID 设为静态,以便它可以经常与其他 Web 服务一起使用。我在此应用程序中使用 statc 变量,以便可以在应用程序级别使用它们。部署应用程序后,我可以看到模拟器提供了带有乘法符号的关闭按钮。这样我就可以关闭我的表格和应用程序。但我想在我的应用程序中提供一个注销链接。我可以在 C# 窗口应用程序中提供注销功能吗?如果是,该怎么做?请确保.net框架的所有功能都不能与.net紧凑框架一起使用?您能给我提供可以解决上述问题的代码或链接吗?

I am developng Smart device application in C#. It is a window application. In this application I am using Login form to authenticate the users. Only authenticated users can login into the system. In this application I am calling java web services which resides on another machine. I am passing mobile number & password from mu application's login form to the java web services. The java web services returns the userid after successful authentication. I made this userid static so that it can be used frequently with other web services. I using statc variables in this application so that they can be used at application level. After deploying the application I can see that emulator provides the close button with multiplicaton symbol. In this way I can close my form as well as application. But I want to provde one logout link in my application. Can I provide logout functionality in C# window application ? If yes, how to do that ? Please make sure that all the functions of .net framework does not work with .net compact framwork? Can you provide me the code or link through which can resolve the above issue ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

掩于岁月 2024-08-30 23:33:28

为什么不“重置”所需的变量(如果有需要的话)并再次显示登录表单?

Why don't you "reset" required variables (if there are any that need to) and display the Login form again ?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文