--- a/src/FingersDance.Data/Annotation.cs Tue Nov 10 13:47:58 2009 +0100
+++ b/src/FingersDance.Data/Annotation.cs Thu Nov 12 16:15:19 2009 +0100
@@ -8,19 +8,31 @@
{
public class Annotation
{
+ private String _id;
private float _tcBegin;
private float _dur;
- private string _gestureType;
+ private String _gestureType;
private Color _color;
- public Annotation(float tcBeginPar, float durPar, string gesturePar, Color colorPar)
+ public Annotation(String idPar, float tcBeginPar, float durPar, String gesturePar, Color colorPar)
{
+ this._id = idPar;
this._tcBegin = tcBeginPar;
this._dur = durPar;
this._gestureType = gesturePar;
this._color = colorPar;
}
+ public String Id
+ {
+ get { return _id; }
+ set
+ {
+ if (value == _id || String.IsNullOrEmpty(value))
+ return;
+ _id = value;
+ }
+ }
public float TcBegin
{
get { return _tcBegin; }