为激活生成的安全密钥 [英] Security key generated for activation

查看:80
本文介绍了为激活生成的安全密钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 我将为该软件提供两种类型的用户。许可证密钥将根据用户类型进行不同的分配。软件是否可以识别代码生成的用户?如果我只有两个用户的安装程序

 I will have two types of user for the software. The license key will assigned differently according the type of user. Is that possible for software to recognised which user that the code generate for? If I only have on installer for the two user

推荐答案

对于一个简单的代码,你可以做

For a simple code, you can do

 if (textBox1.Text == "admin")
            {
                Form1 f1 = new Form1();
                f1.Show();
            }
            else if (textBox1.Text == "standard")
            {
                Form2 f2 = new Form2();
                f2.Show();
            }
            else
                System.Windows.Forms.MessageBox.Show("You are not permitted to use this software !");


这篇关于为激活生成的安全密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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