在.NET Windows应用程序中设置试用期. [英] set trial period in .NET wondows applications.

查看:125
本文介绍了在.NET Windows应用程序中设置试用期.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何在C#.NET Windows应用程序中设置n天试用期.
请给我完整的源代码. 10天后,该应用程序应该到期.

How can we set n Days trial period in C#.NET Windows application.
Please give me the full source code. After 10 days, the application should expire.

推荐答案

一种方法是存储安装/首次运行日期和许可证类型(试用版或完整许可证),这可以可以在文本文件或注册表中完成,无论哪种情况都应进行加密.

当您的应用启动时,它会检查此值并将其与当前日期进行比较(如果已超过10天),并且它是试用许可证,则您不允许该程序运行.

并且不会为此提供任何源代码.
Well one way is to store the install/first run date and license type (Trial or Full License), this can be done in either a text file or the registry, in either case it should be encrypted.

When your app starts it checks this value and compares it to the current date if more than 10 days have passed and it is a trial license you do not allow the program to run.

And no source code will be provided for this.


这是一个示例 [ ^ ].

没有人会为您提供源代码.
Here is a sample[^].

No one will provide the source code for you.


这篇关于在.NET Windows应用程序中设置试用期.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆