Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
 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;
     }
 }
Exemplo n.º 4
0
 public StarSkyForm(BBS obj)
 {
     InitializeComponent();
     this.obj = obj;
 }