private void UpdateNoteAttribute(NoteKAttributeDto noteAttribute) { var item = listViewAttributes.Items[noteAttribute.NoteKAttributeId.ToString()]; item.Text = noteAttribute.Name; item.SubItems[1].Text = noteAttribute.Value; }
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); } }