private void userGenerationButton_Click(object sender, EventArgs e) { int number = Convert.ToInt32(textBoxUserGeneration.Text); bbs_obj = new BBS(number); comboBox1.Visible = true; bbs_obj.GenerateSequense(); printSecuence(bbs_obj); }
private void printSecuence(BBS obj) { string sequence = ""; for (int i = 0; i < obj.U.Count(); i++) { if (i != obj.U.Count() - 1) { sequence += Convert.ToString(obj.U[i]) + "; "; } else { sequence += Convert.ToString(obj.U[i]) + "."; } } richTextBox1.Text = sequence; }
private void goButton_Click(object sender, EventArgs e) { if (radioButton1.Checked) { labelUserGeneration.Visible = false; textBoxUserGeneration.Visible = false; userGenerationButton.Visible = false; bbs_obj = new BBS(); comboBox1.Visible = true; bbs_obj.GenerateSequense(); printSecuence(bbs_obj); } if (radioButton2.Checked) { labelUserGeneration.Visible = true; textBoxUserGeneration.Visible = true; userGenerationButton.Visible = true; } }
public StarSkyForm(BBS obj) { InitializeComponent(); this.obj = obj; }