private void OnItemsChanged(object sender, ActionsPaneItemCollectionEventArgs e) { ActionsPaneItem[] items = e.GetItems(); switch (e.ChangeType) { case ActionsPaneItemCollectionChangeType.Add: foreach (ActionsPaneItem item in items) { item.Changed += new EventHandler(this.OnItemDataChanged); } this.RefreshChildData(); base.Notify(); return; case ActionsPaneItemCollectionChangeType.Remove: foreach (ActionsPaneItem item2 in items) { item2.Changed -= new EventHandler(this.OnItemDataChanged); } this.RefreshChildData(); base.Notify(); return; } }
private void OnActionsPaneItemsChanged(object sender, ActionsPaneItemCollectionEventArgs e) { this.ThrowIfViewShutdown("OnActionsPaneItemsChanged"); if (this._view.Initialized) { this._view.OnSelectionActionsChanged(this._actionsPaneItems.Data); } }
private void OnActionsPaneItemsChanged(object sender, ActionsPaneItemCollectionEventArgs e) { base.Notify(); }
private void OnModeActionsChanged(object source, ActionsPaneItemCollectionEventArgs e) { this.ThrowIfShutdown("OnModeActionsChanged"); if (this.Initialized) { this.SynchronizeModeActions(); } }