Type UndoData (Text As String, clr As Int)
Sub Timer1_Tick
manager.AddState(GetState) 'nothing will happen if the state is the same as the previous one
End Sub
Sub GetState As UndoData
Dim ud As UndoData
ud.Initialize
ud.Text = TextArea1.Text
ud.clr = fx.Colors.To32Bit(ColorPicker1.SelectedColor)
Return ud
End Sub