コード例 #1
0
        public void ReadDataFromXml()
        {
            SETDATA.load(ref Form1.SETDATA);

            //スリーブ番号をXMLに格納
            ComboBox [] sleeveList = new ComboBox [] { comboBox1, comboBox2, comboBox3, comboBox4, comboBox5, comboBox6, comboBox7, comboBox8, comboBox9, comboBox10, comboBox11, comboBox12, comboBox13, comboBox14, comboBox15, comboBox16 };
            for (int i = 0; i < SETDATA.sleeveNo.Length; i++)
            {
                string left = SETDATA.sleeveNo[i].Substring(0, 1);
                if (left == "-")
                {
                    left = "";
                }
                sleeveList[(i * 2)].Text = left;

                string right = SETDATA.sleeveNo[i].Substring(1, 1);
                if (right == "-")
                {
                    right = "";
                }
                sleeveList[(i * 2 + 1)].Text = right;
            }

            //T係数、Z補正をコントロールに設定
            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++)
            {
                t_keisuList[i].Text = SETDATA.t_keisu[i];
                z_hoseiList[i].Text = SETDATA.z_hosei[i];
            }
        }
コード例 #2
0
 static private void ReadDataFromXml()
 {
     SETDATA.load(ref Form1.SETDATA);
 }