Beispiel #1
0
 public BoardItemsEnumerator(BoardItemsManager parent)
 {
     this.parent   = parent;
     currList      = parent.BackBackgrounds;
     listIndex     = -1;
     currListIndex = 0;
 }
Beispiel #2
0
        public Board(Point mapSize, Point centerPoint, MultiBoard parent, System.Windows.Controls.ContextMenu menu, ItemTypes visibleTypes, ItemTypes editedTypes)
        {
            this.uid          = Interlocked.Increment(ref uidCounter);
            this.MapSize      = mapSize;
            this.centerPoint  = centerPoint;
            this.parent       = parent;
            this.visibleTypes = visibleTypes;
            this.editedTypes  = editedTypes;
            this.menu         = menu;

            boardItems  = new BoardItemsManager(this);
            undoRedoMan = new UndoRedoManager(this);
            mouse       = new Mouse(this);
            serMan      = new SerializationManager(this);
        }