Beispiel #1
0
 private void onRoomObjectsChanged(AGSHashSetChangedEventArgs <IObject> args)
 {
     if (args.ChangeType == ListChangeType.Add)
     {
         subscribeObjects(args.Items);
     }
     else
     {
         unsubscribeObjects(args.Items);
     }
     onEverythingChanged();
 }
Beispiel #2
0
        private void onGuiChanged(AGSHashSetChangedEventArgs <IObject> args)
        {
            var uiNode   = _treeView.Tree.TreeNode.Children.First(c => c.Text == _uiPrefix);
            var expander = new NodesExpander(_treeView);

            if (args.ChangeType == ListChangeType.Add)
            {
                foreach (var item in args.Items)
                {
                    addObjectToTree(item, uiNode);
                }
            }
            else
            {
                foreach (var item in args.Items)
                {
                    removeFromTree(item.ID, uiNode);
                }
            }
            expander.Expand();
        }
Beispiel #3
0
            private void onRoomObjectsChanged(AGSHashSetChangedEventArgs <IObject> args)
            {
                var roomNode = _findRoom(Room);
                var expander = new NodesExpander(_treeView);
                var objects  = roomNode.TreeNode.Children.First(c => c.Text == _objectsPrefix);

                if (args.ChangeType == ListChangeType.Add)
                {
                    foreach (var obj in args.Items)
                    {
                        _addObjToTree(obj, objects);
                    }
                }
                else
                {
                    foreach (var obj in args.Items)
                    {
                        _removeFromTree(obj.ID, objects);
                    }
                }
                expander.Expand();
            }
Beispiel #4
0
 private void onAreaRestrictListChanged(AGSHashSetChangedEventArgs <string> obj)
 {
     refreshAreaScaling();
 }
 private void onRestrictionListChanged(AGSHashSetChangedEventArgs <string> obj)
 {
     _onSomethingChanged();
 }