public void ChangedPassword(string dbcontrolstr = null)
 {
     //随机生成dBpassword
     DBPasswordA = SampleRandom.GetRandom(12);
     DBPasswordB = SampleRandom.GetRandom(12);
     if (!string.IsNullOrEmpty(dbcontrolstr))
     {
         DBControlStr = dbcontrolstr;
         ControlStr   = dbcontrolstr;
     }
     PasswordVersion = (PasswordVersion + 1) % 256;
 }
Example #2
0
 private void Block_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
 {
     this.Block2.RandomStr = SampleRandom.GetRandom(28);
     this.Block2.CRC       = GetCRC();
 }