示例#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
文件: View.cs 项目: SiteView/ECC8.13
 private void OnModeActionsChanged(object source, ActionsPaneItemCollectionEventArgs e)
 {
     this.ThrowIfShutdown("OnModeActionsChanged");
     if (this.Initialized)
     {
         this.SynchronizeModeActions();
     }
 }