예제 #1
0
파일: Grid.cs 프로젝트: uiacm/tower_creator
        public Grid(Grid other)
        {
            rows = other.rows;
            columns = other.columns;

            states = new List<List<Color>>();
            for (int row = 0; row < rows; ++row)
            {
                states.Add(new List<Color>());
                for (int col = 0; col < columns; ++col)
                    states[row].Add(other.states[row][col]);
            }
        }
예제 #2
0
        private void pasteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (clipBoardFrame != null)
            {
                grids[gridNum] = new Grid(clipBoardFrame);

                pictureBox.Invalidate();
                frameSliderPictureBox.Invalidate();
                MarkModified();
            }
        }
예제 #3
0
        private void copyToolStripMenuItem_Click(object sender, EventArgs e)
        {
            clipBoardFrame = new Grid(grids[gridNum]);

            pasteToolStripMenuItem.Enabled = true;
        }