Пример #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            for (int i = 0; i < 100; i++)
            {
                int rowNumber    = (i) / 10 + 1;
                int columnNumber = i % 10 + 1;

                memoryGroup.Controls.Add(Forms.CreateLabel("memoryTitle" + i, i.ToString("00"), new int[2] {
                    columnNumber * 38 - 20, rowNumber * 48 - 20
                }));
                memoryGroup.Controls.Add(Forms.CreateTextBox("memoryValue" + i, "000", new int[2] {
                    columnNumber * 38 - 25, rowNumber * 48 - 2
                }));
            }

            selectionColorBox.BackColor = lightBlue;
            modifiedColorBox.BackColor  = lightRed;
            sourceColorBox.BackColor    = lightYellow;
            targetColorBox.BackColor    = lightGreen;
        }