public SymFigures Remove() { SymFigures temp = figureList.Last(); figureList.Remove(figureList.Last()); return(temp); }
private void pictureBox1_MouseClick(object sender, MouseEventArgs e) { if (creator != null) { if (creator.manyClick) { if (e.Button == MouseButtons.Left) { start.X = e.X; start.Y = e.Y; if (!drow) { figure = creator.Create(thickness, color, colorFill); figure.StartPoint = start; drow = !drow; } else { figure.StartPoint = start; } } else if (e.Button == MouseButtons.Right) { drow = !drow; figList.Add(figure); figStack.CleanStack(); } } } }
private void pictureBox1_MouseDown(object sender, MouseEventArgs e) { if (creator != null) { if (!drow && !creator.manyClick) { figure = creator.Create(thickness, color, colorFill); if (creator.manyAng) { (figure as Polygon).cornersNum = ang; } drow = !drow; start.X = e.X; start.Y = e.Y; figure.StartPoint = start; } } }
public void Add(SymFigures sym) { figureList.Add(sym); }
public void Push(SymFigures symFigures) { reStack.Push(symFigures); }