Ejemplo n.º 1
0
        private void OnPositionCheckChanged(object sender, EventArgs e)
        {
            grpPositionSettings.Controls.Clear();
            Control c = null;

            if (rdTile.Checked)
            {
                c = new TilePositionEditor(_tile, _edSvc);
            }
            else if (rdXY.Checked)
            {
                c = new XYPositionEditor(_xy, _edSvc);
            }

            if (c != null)
            {
                c.Dock = DockStyle.Fill;
                grpPositionSettings.Controls.Add(c);
            }

            if (rdTile.Checked)
            {
                _wm.Position = _tile;
            }
            else if (rdXY.Checked)
            {
                _wm.Position = _xy;
            }
        }
Ejemplo n.º 2
0
        private void TilePos_CheckedChanged(object sender, EventArgs e)
        {
            ovPosPanel.Controls.Clear();
            Control c = null;

            if (rdOvPosXY.Checked)
            {
                c = new XYPositionEditor(_ovXyPosition, _edSvc);
            }
            else if (rdOvTilePos.Checked)
            {
                c = new TilePositionEditor(_ovTilePosition, _edSvc);
            }

            if (c != null)
            {
                c.Dock = DockStyle.Fill;
                ovPosPanel.Controls.Add(c);
            }
        }
Ejemplo n.º 3
0
        private void OnPositionCheckChanged(object sender, EventArgs e)
        {
            grpPositionSettings.Controls.Clear();
            Control c = null;
            if (rdTile.Checked)
                c = new TilePositionEditor(_tile, _edSvc);
            else if (rdXY.Checked)
                c = new XYPositionEditor(_xy, _edSvc);

            if (c != null)
            {
                c.Dock = DockStyle.Fill;
                grpPositionSettings.Controls.Add(c);
            }

            if (rdTile.Checked)
                _wm.Position = _tile;
            else if (rdXY.Checked)
                _wm.Position = _xy;
        }
Ejemplo n.º 4
0
        private void TilePos_CheckedChanged(object sender, EventArgs e)
        {
            ovPosPanel.Controls.Clear();
            Control c = null;
            if (rdOvPosXY.Checked)
            {
                c = new XYPositionEditor(_ovXyPosition, _edSvc);
            }
            else if (rdOvTilePos.Checked)
            {
                c = new TilePositionEditor(_ovTilePosition, _edSvc);
            }

            if (c != null)
            {
                c.Dock = DockStyle.Fill;
                ovPosPanel.Controls.Add(c);
            }
        }