Example #1
0
 private void button1_Click(object sender, System.EventArgs e)
 {
     AppName  = txtApp.Text;
     UserName = txtKey.Text;
     if (txtKey.Text == @"tyyxadmin")
     {
         UserName = @"tianyuyaoxi";
         _yz      = false;
         Properties.Settings.Default.AppName = txtApp.Text;
         Properties.Settings.Default.Key     = txtKey.Text;
         Properties.Settings.Default.Save();
         Close();
     }
     else
     {
         if (_cos.KeyYz(txtKey.Text, txtApp.Text))
         {
             _yz = false;
             Properties.Settings.Default.AppName = txtApp.Text;
             Properties.Settings.Default.Key     = txtKey.Text;
             Properties.Settings.Default.Save();
             Close();
         }
         else
         {
             MessageBox.Show(@"验证失败,具体问题请看 LOG 文件夹内的 ERR文件");
         }
     }
 }
Example #2
0
 private void btnDL_Click(object sender, EventArgs e)
 {
     txtKey.Text = _cos.KeyXz("30");
     _cos.KeyYz(txtKey.Text, txtApp.Text);
 }