Пример #1
0
 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;
 }
Пример #2
0
 private void Block_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
 {
     this.Block2.RandomStr = SampleRandom.GetRandom(28);
     this.Block2.CRC       = GetCRC();
 }