Ejemplo n.º 1
0
        private void toolStripButtonArrow_Click(object sender, EventArgs e)
        {
            if (toolStripButtonArrow.Checked)
            {
                if (MasterPane.CustomObjectsManager.IsBuildingObject)
                {// Already building.
                    ((ToolStripButton)(sender)).Checked = false;
                    return;
                }

                ArrowObject arrow = new ArrowObject("arrow");

                arrow.Pen   = new Pen(DrawingColor);
                arrow.Brush = new SolidBrush(DrawingColor);

                MasterPane.CustomObjectsManager.BuildDynamicObject(arrow);
            }
            else
            {
                MasterPane.CustomObjectsManager.StopBuildingDynamicObject();
            }
        }
Ejemplo n.º 2
0
        private void toolStripButtonArrow_Click(object sender, EventArgs e)
        {
            if (toolStripButtonArrow.Checked)
            {
                if (MasterPane.CustomObjectsManager.IsBuildingObject)
                {// Already building.
                    ((ToolStripButton)(sender)).Checked = false;
                    return;
                }

                ArrowObject arrow = new ArrowObject("arrow");

                arrow.Pen = new Pen(DrawingColor);
                arrow.Brush = new SolidBrush(DrawingColor);

                MasterPane.CustomObjectsManager.BuildDynamicObject(arrow);
            }
            else
            {
                MasterPane.CustomObjectsManager.StopBuildingDynamicObject();
            }
        }