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