PopupEditor.cs 463 B

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