コード例 #1
0
        /// <summary>
        /// set the object of the page
        /// </summary>
        /// <param name="inObject"></param>
        public void SetObjects(object inObject)
        {
            if (inObject is layerObj)
            {
                m_pLayer = inObject as layerObj;
                m_pEditLayer = m_pLayer.clone();
                m_pEditMap = m_pLayer.map.clone();

                StringCollection pFields = Utils.Utility.GetFieldsOfLayer(m_pLayer);

                foreach(string fieldName in pFields)
                {
                    comboBoxClassItem.Items.Add(fieldName);
                    comboBoxLabelItem.Items.Add(fieldName);
                }

            }
        }