Пример #1
0
        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;
            }
        }
Пример #2
0
 private void OnActionsPaneItemsChanged(object sender, ActionsPaneItemCollectionEventArgs e)
 {
     this.ThrowIfViewShutdown("OnActionsPaneItemsChanged");
     if (this._view.Initialized)
     {
         this._view.OnSelectionActionsChanged(this._actionsPaneItems.Data);
     }
 }
Пример #3
0
 private void OnActionsPaneItemsChanged(object sender, ActionsPaneItemCollectionEventArgs e)
 {
     base.Notify();
 }
Пример #4
0
 private void OnModeActionsChanged(object source, ActionsPaneItemCollectionEventArgs e)
 {
     this.ThrowIfShutdown("OnModeActionsChanged");
     if (this.Initialized)
     {
         this.SynchronizeModeActions();
     }
 }