public static CustomDataEntryListItem Create(CustomDataEntry CustomDataEntry)
        {
            CustomDataEntryListItem CustomDataEntryListItem = new CustomDataEntryListItem();

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

            return(CustomDataEntryListItem);
        }
Beispiel #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();
        }