예제 #1
0
        private void OnPropertiesListChanged(object sender, NotifyCollectionChangedEventArgs e)
        {
            if (e.NewItems != null)
            {
                foreach (InstrumentProperty ip in e.NewItems.OfType <InstrumentProperty>())
                {
                    ip.InstrumentID = _instance.ID;
                    PropertiesToAdd.Add(ip);
                }
            }

            if (e.OldItems != null)
            {
                PropertiesToRemove.AddRange(e.OldItems.OfType <InstrumentProperty>());
            }
        }