예제 #1
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            calcTool              = false;
            delTool               = false;
            moveShape             = false;
            btnToolArea.BackColor = Color.Transparent;
            btnToolDel.BackColor  = Color.Transparent;
            btnMoveTool.BackColor = Color.Transparent;
            FormProperties prop = new FormProperties();


            prop.strWidth     = sWidth.ToString();
            prop.strHeight    = sHeight.ToString();
            prop.drawRect     = drawRect;
            prop.drawEllipse  = drawEllipse;
            prop.drawTriangle = drawTriangle;
            prop.Fillcolor    = Fillcolor;

            if (prop.ShowDialog() == DialogResult.OK)
            {
                sWidth       = prop.Width;
                sHeight      = prop.Height;
                drawRect     = prop.drawRect;
                drawEllipse  = prop.drawEllipse;
                drawTriangle = prop.drawTriangle;
                Fillcolor    = prop.Fillcolor;
            }
        }
예제 #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            FormProperties prop = new FormProperties();

            if (prop.ShowDialog() == DialogResult.OK)
            {
                sWidth       = prop.Width;
                sHeight      = prop.Height;
                drawRect     = prop.drawRect;
                drawEllipse  = prop.drawEllipse;
                drawTriangle = prop.drawTriangle;
                Fillcolor    = prop.Fillcolor;
            }
        }