CodePopupEditor.cs 535 B

12345678910111213141516171819202122
  1. using System;
  2. namespace InABox.Core
  3. {
  4. public class CodePopupEditor : DataLookupEditor
  5. {
  6. public CodePopupEditor(Type type, params string[] otherfields) : base(type, otherfields)
  7. {
  8. }
  9. public string CodeColumn { get; set; }
  10. public bool CanAdd { get; set; } = false;
  11. protected override BaseEditor DoClone()
  12. {
  13. var result = (CloneDataLookupEditor() as CodePopupEditor)!;
  14. result.CodeColumn = CodeColumn;
  15. return result;
  16. }
  17. }
  18. }