Esempio n. 1
0
        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]);
            }
        }
Esempio n. 2
0
        private void pasteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (clipBoardFrame != null)
            {
                grids[gridNum] = new Grid(clipBoardFrame);

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

            pasteToolStripMenuItem.Enabled = true;
        }