Пример #1
0
        private void EditItem(ListViewItem selectedItem)
        {
            //TODO: open a edit form
            //Show full  text
            var itemId            = selectedItem.Name;
            var itemText          = selectedItem.Text;
            var editIdeaDialog    = new EditIdeaDialog();
            var editedDescription = editIdeaDialog.ShowDialog(int.Parse(itemId), _ideaService);

            if (editedDescription == string.Empty)
            {
                return;
            }
            _ideaService.Update(editedDescription, itemId);
            var ideaList = (ListView)GetIdeaList(_area);

            ideaList.Items.Clear();
            PopulateData(ideaList);
        }