Ejemplo n.º 1
0
        private void getItemFromUI()
        {
            editedItem.setName(tbName.Text);
            editedItem.description = tbcDescription.Text;
            editedItem.comment     = tbComment.Text;
            editedItem.visibility  = cbVisibility.Checked;
            editedItem.singleUse   = cbSingleUse.Checked;
            editedItem.pathToImage = beImage.Value;

            List <int> owners = new List <int>();

            foreach (ListViewDataItem lvPerson in lvPersons.CheckedItems)
            {
                owners.Add((int)lvPerson.Value);
            }
            personManager.refreshItemOnPersons(owners, editedItem.getID());
            editedItem.setOwnerPersons(owners);
        }