Fractrace.Animation.AnimationControl.AddCurrentHistoryEntry C# (CSharp) Method

AddCurrentHistoryEntry() public method

Append Entry to Animation
public AddCurrentHistoryEntry ( ) : void
return void
        public void AddCurrentHistoryEntry()
        {
            AnimationPoint point = new AnimationPoint();
            point.Time = _dataPerTime.CurrentTime;
            point.Steps = ParameterDict.Current.GetInt("Animation.Steps");
            string comment = "";
            try
            {
                string file = _dataPerTime.Get(point.Time)["Intern.FileName"];
                if (file != "")
                {
                    file = System.IO.Path.GetFileNameWithoutExtension(file);
                    comment = "         # File " + file;
                }
            }
            catch (System.Exception ex)
            {
                System.Diagnostics.Debug.WriteLine(ex.ToString());
            }
            tbAnimationDescription.Text = tbAnimationDescription.Text + System.Environment.NewLine + "Run Steps " + point.Steps.ToString() + " Time " + point.Time.ToString() + comment ;
        }