Beispiel #1
0
        public ToolsSelectCommand(Layer layer,
            TileSelection currentTileSelection, TileSelection newTileSelection,
            bool replace)
        {
            m_layer = layer;
            m_currentTileSelection = currentTileSelection;
            m_oldTileSelection = new TileSelection(currentTileSelection);
            m_newTileSelection = new TileSelection(newTileSelection);
            m_replace = replace;

            if (m_replace)
                m_description = newTileSelection.IsEmpty() ? "Clear selection" : "Select tiles";
            else
                m_description = "Select more tiles";
        }
        public ToolsSelectCommand(Layer layer,
                                  TileSelection currentTileSelection, TileSelection newTileSelection,
                                  bool replace)
        {
            m_layer = layer;
            m_currentTileSelection = currentTileSelection;
            m_oldTileSelection     = new TileSelection(currentTileSelection);
            m_newTileSelection     = new TileSelection(newTileSelection);
            m_replace = replace;

            if (m_replace)
            {
                m_description = newTileSelection.IsEmpty() ? "Clear selection" : "Select tiles";
            }
            else
            {
                m_description = "Select more tiles";
            }
        }