Пример #1
0
        public frmRearrageTiles()
        {
            InitializeComponent();

            tdArrangement        = new TileDisplay();
            tdArrangement.Zoom   = true;
            tdArrangement.Bounds = new Rectangle(8, 8, 256, 256);
            tdArrangement.SetInitialArrangement();
            tdArrangement.MouseDown += new MouseEventHandler(tdArrangement_MouseDown);
            Controls.Add(tdArrangement);

            tdUnplaced        = new TileDisplay();
            tdUnplaced.Zoom   = true;
            tdUnplaced.Bounds = new Rectangle(272, 8, 256, 256);
            tdUnplaced.SetEmptyArrangement();
            tdUnplaced.MouseDown += new MouseEventHandler(tdUnplaced_MouseDown);
            Controls.Add(tdUnplaced);
        }