private void trueGenBtn1_Click(object sender, EventArgs e) { if (modulo < 3) { pBox.Text = "12345"; } primit = CryptoMath.calculatePrimitiveRoot(modulo); trueBox.Text = primit.ToString(); }
private void generategBtn_Click(object sender, EventArgs e) { this.Enabled = false; if (p > 2) { if (CryptoMath.DIGITS > 10) { g = CryptoMath.calculateFakePrimitiveRoot(p); } else { g = CryptoMath.calculatePrimitiveRoot(p); } } gtextBox.Text = g.ToString(); this.Enabled = true; }