Example #1
0
    private void UpdateNoteAttribute(NoteKAttributeDto noteAttribute)
    {
        var item = listViewAttributes.Items[noteAttribute.NoteKAttributeId.ToString()];

        item.Text             = noteAttribute.Name;
        item.SubItems[1].Text = noteAttribute.Value;
    }
Example #2
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);
        }
    }