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