コード例 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="row"></param>
        /// <param name="type"></param>
        /// <param name="listEx"></param>
        protected static void setListType(int row, property_types type, ListViewEx listEx, string [] listValue)
        {
            string[] strBoolean = { "True", "False" };

            switch (type)
            {
            case property_types.ptInteger:
            case property_types.ptDouble:
            case property_types.ptString:   listEx.AddEditableCell(row, 1);
                break;

            case property_types.ptBoolean:
                listEx.AddComboBoxCell(row, 1, strBoolean);
                break;

            case property_types.ptList:
                listEx.AddComboBoxCell(row, 1, listValue);
                break;
            }
        }