public static void Redo(object sender, EventArgs e) { if (!firstSaveState) { return; } _btnUndo.Enabled = true; _btnRedo.Enabled = ringBuffer.Up();; for (int i = _figureArray.Count - 1; i >= 0; i--) { _figureArray.Remove(_figureArray[i]); } _figureArray.AddRange(SerializerFigure.Parse(ringBuffer.Value)); _form.IsChanged = !ringBuffer.IsSaved; _paintBox.Invalidate(); }
protected void ValChanged(object sender, EventArgs e) { if (paintBox != null) { paintBox.Invalidate(); } if (changeAll != null) { changeAll(this); } }