Esempio n. 1
0
        private void размерХолстаToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CanvasSize cs = new CanvasSize();

            if (cs.ShowDialog() == DialogResult.OK)
            {
                ((Canvas)ActiveMdiChild).CanvasWidth  = int.Parse(cs.pictureBoxWidth.Text);
                ((Canvas)ActiveMdiChild).CanvasHeight = int.Parse(cs.pictureBoxHeight.Text);
            }
        }
Esempio n. 2
0
        private void размерХолстаToolStripMenuItem_Click(object sender, EventArgs e) //изменение холста
        {
            CanvasSize cs = new CanvasSize();

            cs.CanvasWidth  = ((Canvas)ActiveMdiChild).CanvasWidth;
            cs.CanvasHeight = ((Canvas)ActiveMdiChild).CanvasHeight;
            if (cs.ShowDialog() == DialogResult.OK)
            {
                ((Canvas)ActiveMdiChild).CanvasWidth  = cs.CanvasWidth;
                ((Canvas)ActiveMdiChild).CanvasHeight = cs.CanvasHeight;
            }
        }
Esempio n. 3
0
        private void размерХолстаToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CanvasSize cs = new CanvasSize();

            cs.CanvasWidth.Text  = ((Canvas)ActiveMdiChild).CanvasWidth.ToString();
            cs.CanvasHeight.Text = ((Canvas)ActiveMdiChild).CanvasHeight.ToString();
            if (cs.ShowDialog() == DialogResult.OK)
            {
                ((Canvas)ActiveMdiChild).CanvasWidth  = Convert.ToInt32(cs.CanvasWidth.Text);
                ((Canvas)ActiveMdiChild).CanvasHeight = Convert.ToInt32(cs.CanvasHeight.Text);
            }
        }