Example #1
0
    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);
        }
    }
Example #2
0
 public IEditorView <NoteKAttributeDto> View(NoteAttributeEditorComponent component)
 {
     return(new NoteAttributeEditorForm(component));
 }
Example #3
0
 public NoteAttributeEditorForm(NoteAttributeEditorComponent com)
 {
     InitializeComponent();
     _com = com;
 }