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); }); }
private void BtSetRandomSubscriberParams(object sender, EventArgs e) { tbClosedKey.Text = PrimeNumberGenerator.GeneratePrimeNumber(10, 100, _random).ToString(); tbSubscriberName.Text = HelpfulMethods.GetRandomName(_random); }