Пример #1
0
        public void WriteDataToXml()
        {
            //スリーブ番号をXMLに格納
            ComboBox [] sleeveList = new ComboBox [] { comboBox1, comboBox2, comboBox3, comboBox4, comboBox5, comboBox6, comboBox7, comboBox8, comboBox9, comboBox10, comboBox11, comboBox12, comboBox13, comboBox14, comboBox15, comboBox16 };
            int         j          = 0;

            for (int i = 0; i < sleeveList.Length; i += 2)
            {
                string left = sleeveList[i].Text;
                if (left == "")
                {
                    left = "-";
                }
                string right = sleeveList[i + 1].Text;
                if (right == "")
                {
                    right = "-";
                }

                SETDATA.sleeveNo[j] = left + right;
                j++;
            }

            //T係数、Z補正をXMLに格納
            NumericUpDown [] t_keisuList = new NumericUpDown [] { numericUpDown1, numericUpDown3, numericUpDown5, numericUpDown7, numericUpDown9, numericUpDown11, numericUpDown13, numericUpDown15 };
            NumericUpDown [] z_hoseiList = new NumericUpDown [] { numericUpDown2, numericUpDown4, numericUpDown6, numericUpDown8, numericUpDown10, numericUpDown12, numericUpDown14, numericUpDown16 };
            for (int i = 0; i < SETDATA.sleeveNo.Length; i++)
            {
                SETDATA.t_keisu[i] = t_keisuList[i].Text;
                SETDATA.z_hosei[i] = z_hoseiList[i].Text;
            }

            SETDATA.save(Form1.SETDATA);
        }
Пример #2
0
 static public void WriteDataToXml()
 {
     SETDATA.save(Form1.SETDATA);
 }