Пример #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;
            }
        }
Пример #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);
            }
        }
Пример #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;
        }
Пример #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);
            }
        }