Esempio n. 1
0
        private void BtSetRandomSubscriberParams(object sender, EventArgs e)
        {
            CatchException(() =>
            {
                tbClosedKey.Text = PrimeNumberGenerator
                                   .GeneratePrimeNumber(3, Convert.ToInt32(tbParamQ.Text) - 1, _random)
                                   .ToString();

                tbSubscriberName.Text = HelpfulMethods.GetRandomName(_random);
            });
        }
Esempio n. 2
0
 private void BtSetRandomSubscriberParams(object sender, EventArgs e)
 {
     tbClosedKey.Text      = PrimeNumberGenerator.GeneratePrimeNumber(10, 100, _random).ToString();
     tbSubscriberName.Text = HelpfulMethods.GetRandomName(_random);
 }