/// <summary> /// Method called when the selection changed. /// </summary> /// <param name="pAddedItems">The added items from the previous selection.</param> /// <param name="pRemovedItems">The removed items from the previous selection.</param> protected virtual void OnSelectionChanged(IEnumerable pRemovedItems, IEnumerable pAddedItems) { // Notifying threw the tree. if (this.SelectionChanged != null) { XTreeListView.ViewModel.SelectionChangedEventArgs lSelectionEventArgs = new XTreeListView.ViewModel.SelectionChangedEventArgs(pRemovedItems, pAddedItems); this.SelectionChanged(this, lSelectionEventArgs); } }
/// <summary> /// Notifies a selection modification. /// </summary> /// <param name="pRemovedItems">The items removed from the selection.</param> /// <param name="pAddedItems">The items added to the selection.</param> private void NotifySelectionChanged(IHierarchicalItemViewModel[] pRemovedItems, IHierarchicalItemViewModel[] pAddedItems) { if (this.SelectionChanged != null) { SelectionChangedEventArgs lArgs = new SelectionChangedEventArgs(pRemovedItems, pAddedItems); this.SelectionChanged(this, lArgs); } }
/// <summary> /// Delegate called when the selection changed on the inner list view. /// </summary> /// <param name="pSender">The modified list view.</param> /// <param name="pEventArgs">The event arguments.</param> private void OnInnerListViewSelectionChanged(object pSender, XTreeListView.ViewModel.SelectionChangedEventArgs pEventArgs) { this.OnSelectionChanged(pEventArgs.RemovedItems, pEventArgs.AddedItems); }
/// <summary> /// Method called when the selection changed. /// </summary> /// <param name="pAddedItems">The added items from the previous selection.</param> /// <param name="pRemovedItems">The removed items from the previous selection.</param> protected virtual void OnSelectionChanged(IEnumerable pRemovedItems, IEnumerable pAddedItems) { // Notifying threw the tree. if (this.SelectionChanged != null) { XTreeListView.ViewModel.SelectionChangedEventArgs lSelectionEventArgs = new XTreeListView.ViewModel.SelectionChangedEventArgs(pRemovedItems, pAddedItems); this.SelectionChanged(this, lSelectionEventArgs); } }