Exemplo n.º 1
0
        private void BT_Apply_Click(object sender, EventArgs e)
        {
            double[,] data = new double[12, 2];
            data[0, 0]     = CBE_1.SelectedIndex;
            double.TryParse(TE_1.Text, out data[0, 1]);

            data[1, 0] = CBE_2.SelectedIndex;
            double.TryParse(TE_2.Text, out data[1, 1]);

            data[2, 0] = CBE_3.SelectedIndex;
            double.TryParse(TE_3.Text, out data[2, 1]);

            data[3, 0] = CBE_4.SelectedIndex;
            double.TryParse(TE_4.Text, out data[3, 1]);

            data[4, 0] = CBE_5.SelectedIndex;
            double.TryParse(TE_5.Text, out data[4, 1]);

            data[5, 0] = CBE_6.SelectedIndex;
            double.TryParse(TE_6.Text, out data[5, 1]);

            data[6, 0] = CBE_7.SelectedIndex;
            double.TryParse(TE_7.Text, out data[6, 1]);

            data[7, 0] = CBE_8.SelectedIndex;
            double.TryParse(TE_8.Text, out data[7, 1]);

            data[8, 0] = CBE_9.SelectedIndex;
            double.TryParse(TE_9.Text, out data[8, 1]);

            data[9, 0] = CBE_10.SelectedIndex;
            double.TryParse(TE_10.Text, out data[9, 1]);

            data[10, 0] = CBE_11.SelectedIndex;
            double.TryParse(TE_11.Text, out data[10, 1]);

            data[11, 0] = CBE_12.SelectedIndex;
            double.TryParse(TE_12.Text, out data[11, 1]);
            for (int i = 0; i < 12; i++)
            {
                if (data[i, 0] != 165)
                {
                    data[i, 1] = (int)data[i, 1];
                }
            }

            db.EditAction(CBE_IO.SelectedIndex + 1, data, TE_Remark.Text);
        }