Пример #1
0
 private void Inti()
 {
     //txtb_MachineNum.Text = softReg.GetMachineNum();
     if (checkReg.GetIsReg())
     {
         tipRegister = "软件已注册";
     }
     else
     {
         double count = 0;
         if (checkReg.GetUseInfo(ref count))
         {
             this.Text  += string.Format("(试用3天,剩余{0}天)", count.ToString());
             tipRegister = string.Format(" - 试用3天,剩余{0}天", count.ToString());
         }
         else
         {
             软件注册 frm = new 软件注册();
             frm.Text += tipRegister;
             if (frm.ShowDialog() != DialogResult.OK)
             {
                 isRegex = false;
                 //Application.Exit();
             }
             else
             {
                 isRegex = true;
             }
         }
     }
 }
Пример #2
0
        private void btn_软件注册_Click(object sender, EventArgs e)
        {
            软件注册 frm = new 软件注册();

            frm.ShowDialog();
        }