private void button2_Click(object sender, EventArgs e) { textBoxP.Text = AllFunctions.GeneratePrimaryNum().ToString(); }