Ejemplo n.º 1
0
        public static void putButtonsInMatrix(Button [,] i_ButtonsMatrix, UIMainForm i_Form, string i_ButtonName)
        {
            int count = 1;

            for (int j = 0; j < i_Form.NumberOfChances; j++)
            {
                for (int i = 0; i < 4; i++)
                {
                    Button newButton = new Button();
                    newButton.Name        = string.Format("{0}{1}", i_ButtonName, count.ToString());
                    i_ButtonsMatrix[j, i] = newButton;
                    count++;
                }
            }
        }
Ejemplo n.º 2
0
 private void ButtonDefineLinesNumber_Click(object sender, EventArgs e)
 {
     UIMainForm.UpdateNumberOfChances();
     this.m_ButtonDefineLinesNumber.Text = string.Format("Number of chances: {0}", m_MainForm.NumberOfChances.ToString());
 }