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(); }
private void ClearButton_Click(object sender, EventArgs e) { CanvasPanel.Refresh();//clear panel CanvasPanel.BackColor = Color.FromArgb(255, 255, 255); CanvasPanel.BackgroundImage = null; }
private void ClearButton_Click(object sender, EventArgs e) { CanvasPanel.Refresh();//clear panel }