コード例 #1
0
ファイル: PositionSetting.cs プロジェクト: yisea123/AnsonGlue
        /// <summary>
        /// 更新表格
        /// </summary>
        private void UpdateGridViewData()
        {
            int iRowCounts = dataGridView_Position.Rows.Count;

            for (int i = 0; i < iRowCounts; i++)
            {
                string strPosition = dataGridView_Position.Rows[i].Cells[0].Value.ToString();
                CKernel.STRUCT_POSITION sPosition;
                m_oKernel.GetPositionFromIni(strPosition, out sPosition);
                dataGridView_Position.Rows[i].Cells[1].Value = sPosition.m_strPositionX;
                dataGridView_Position.Rows[i].Cells[2].Value = sPosition.m_strPositionY;
                dataGridView_Position.Rows[i].Cells[3].Value = sPosition.m_strPositionZ;
            }
        }