public void RemoveStep(int time)
{
// Remove Entry with given time from Text.
string animtext = tbAnimationDescription.Text;
string[] stringSeparators = new string[] { System.Environment.NewLine };
string[] lines = animtext.Split(stringSeparators, StringSplitOptions.None);
StringBuilder updatedText =new StringBuilder();
foreach (string line in lines)
{
if (!line.Contains(" Time " + time.ToString() + " "))
updatedText.AppendLine(line);
}
tbAnimationDescription.Text = updatedText.ToString();
}