Пример #1
0
 public ChangeWrapper(SledModifiedProjectChange change)
 {
     Change = change;
 }
Пример #2
0
            public void Update(SledModifiedProjectChange change)
            {
                Change = change;

                if (Item != null)
                    Item.Text = change.ToString();
            }
Пример #3
0
        private void ReportNewOrUpdateExistingChange(SledModifiedProjectChange change, ChangeWrapper existing)
        {
            var wrapper = new ChangeWrapper(change) { Category = UserCategory.Pending };

            // Default category

            if (existing == null)
            {
                // Create node representing change
                var lstItem = new ListViewItem(wrapper.Change.ToString()) { Tag = wrapper };

                // Set references
                wrapper.Item = lstItem;

                // Add to list
                m_lstChanges.Items.Add(lstItem);
            }
            else
            {
                // Update existing item
                existing.Update(change);
            }
        }