private void HandleIntentsChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) { if (!mSuppressCollectionChangedEvents) { // We need to modify the model depending on wwhat we did switch (e.Action) { case System.Collections.Specialized.NotifyCollectionChangedAction.Remove: object removedAsObject = e.OldItems[0]; ArrowIntentVm asVm = removedAsObject as ArrowIntentVm; this.Model.Intents.Remove(asVm.Model); break; } RebuildTopLevelItems(); } }
public ArrowElementOrIntentVm(ArrowIntentVm intentVm) : this() { this.IntentVm = intentVm; }