コード例 #1
0
        public static void SendDataFromRoomTextBox(Control parent)
        {
            int i = 0;

            foreach (Control c in parent.Controls)
            {
                if (c.GetType() == typeof(TextBox))
                {
                    i++;
                }
            }
            string[] mass = new string[i];
            foreach (Control c in parent.Controls)
            {
                if (c.GetType() == typeof(TextBox))
                {
                    TextBox textBox = new TextBox();
                    textBox = (TextBox)c;
                    mass[textBox.TabIndex - 1] = textBox.Text;
                }
            }
            BusinessClass.DataInForRoom(mass);
        }