示例#1
0
        private void Drawbtn_Click(object sender, EventArgs e)
        {
            _length    = int.Parse(lengthtxt.Text);
            _increment = int.Parse(incrementtxt.Text);
            _angle     = int.Parse(angletxt.Text);

            // Getting the center position of the Canvas
            _startX = CanvasPanel.Width / 2;
            _startY = CanvasPanel.Height / 2;

            CanvasPanel.Refresh();
        }
示例#2
0
 private void ClearButton_Click(object sender, EventArgs e)
 {
     CanvasPanel.Refresh();//clear panel
     CanvasPanel.BackColor       = Color.FromArgb(255, 255, 255);
     CanvasPanel.BackgroundImage = null;
 }
示例#3
0
 private void ClearButton_Click(object sender, EventArgs e)
 {
     CanvasPanel.Refresh();//clear panel
 }