示例#1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //1、从本机获得注册码
            ZhuceDll.Common.GetMNum();
            ZhuceDll.Common.GetRNum();
            //2、获得机器码,计算机器码
            ZhuceDll.Model.SName = "exceltoword";
            if (ZhuceDll.Common.TestRegist())
            {
                Application.Run(new Form1());
            }
            else
            {
                FormR fr = new FormR();
                if (fr.ShowDialog() == DialogResult.OK)
                {
                    Application.Run(new Form1());
                }
                else
                {
                    return;
                }
            }
        }
示例#2
0
        private void редактироватьToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormR form = new FormR();

            this.Hide();
            form.Show();
        }