private void BtnUndo_Click(object sender, EventArgs e) { drawingEngine.Undo(); PictureBoxPaint.Image = drawingEngine.MainImage; FiguresListBox.Items.Clear(); FiguresListBox.Items.AddRange(drawingEngine.GetFigureList()); }