Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created March 7, 2023 16:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/bf8297c487ddd92b16b597d9732f6506 to your computer and use it in GitHub Desktop.
Save bjoerntx/bf8297c487ddd92b16b597d9732f6506 to your computer and use it in GitHub Desktop.
public class SmartFormField {
public string Name { get; set; }
public string Text { get; set; }
public string DisplayName { get; set; }
}
public class SmartTextFormField : SmartFormField {
public string TypeName { get; set; } = "SmartTextFormField";
}
public class SmartCheckboxField : SmartFormField {
public bool Checked { get; set; }
public string TypeName { get; set; } = "SmartCheckboxField";
}
public class SmartDropdownField : SmartFormField {
public List<string> Items { get; set; } = new List<string>();
public string TypeName { get; set; } = "SmartDropdownField";
}
public class SmartDateField : SmartFormField {
public string Date { get; set; }
public string TypeName { get; set; } = "SmartDateField";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment