Пример #1
0
        public static CustomDataEntryListItem Create(CustomDataEntry CustomDataEntry)
        {
            CustomDataEntryListItem CustomDataEntryListItem = new CustomDataEntryListItem();

            CustomDataEntryListItem.FieldName = CustomDataEntry.FieldTitle;
            CustomDataEntryListItem.SetCustomDataEntryType(CustomDataEntry.CustomDataEntryType);

            return(CustomDataEntryListItem);
        }
Пример #2
0
        private void addFieldBtn_Click(object sender, EventArgs e)
        {
            string fieldName = newFieldNameTextBox.Text;
            CustomDataEntryType fieldType = (CustomDataEntryType)newFieldType.SelectedIndex;

            CustomDataEntry customDataEntry = CustomDataEntry.CreateDefault(fieldName, fieldType);

            CustomDataEntries.Add(customDataEntry);

            PopulateListItems();
        }