public NoteKAttributeDto EditAttribute(NoteKAttributeDto noteAttribute) { var noteAttributeEditor = new NoteAttributeEditorComponent(Store); noteAttributeEditor.AutoDBSave = false; // don't save automatically noteAttributeEditor.LoadModel(Service, noteAttribute, false); var res = noteAttributeEditor.RunModal(); if (res.Entity == EComponentResult.Executed) { return(noteAttributeEditor.Model); } else { return(null); } }
public IEditorView <NoteKAttributeDto> View(NoteAttributeEditorComponent component) { return(new NoteAttributeEditorForm(component)); }
public NoteAttributeEditorForm(NoteAttributeEditorComponent com) { InitializeComponent(); _com = com; }