src/FingersDance.Actions/ActionAddAnnotation.cs
author PAMPHILE Jonathan <pamphile@efrei.fr>
Wed, 23 Sep 2009 22:22:52 +0200
changeset 95 07972aa3f2e0
parent 75 99d003723474
child 135 84b3bf5ee3d2
permissions -rw-r--r--
ListVideo
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
75
99d003723474 data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff changeset
     1
using System;
99d003723474 data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff changeset
     2
using System.Collections.Generic;
99d003723474 data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff changeset
     3
using System.Linq;
99d003723474 data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff changeset
     4
using System.Text;
99d003723474 data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff changeset
     5
99d003723474 data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff changeset
     6
using FingersDance.Control.TimeLine;
99d003723474 data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff changeset
     7
99d003723474 data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff changeset
     8
namespace FingersDance.Actions
99d003723474 data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff changeset
     9
{
99d003723474 data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff changeset
    10
    public class ActionAddAnnotation : FingersDance.Actions.ActionBase
99d003723474 data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff changeset
    11
    {
99d003723474 data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff changeset
    12
        private string _Text = "";
99d003723474 data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff changeset
    13
        private UserControlTimeLine myTimeline;
99d003723474 data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff changeset
    14
99d003723474 data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff changeset
    15
        public ActionAddAnnotation()
99d003723474 data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff changeset
    16
        {
99d003723474 data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff changeset
    17
            
99d003723474 data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff changeset
    18
        }
99d003723474 data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff changeset
    19
99d003723474 data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff changeset
    20
        public ActionAddAnnotation(string text)
99d003723474 data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff changeset
    21
        {
99d003723474 data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff changeset
    22
            _Text = text;
99d003723474 data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff changeset
    23
        }
99d003723474 data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff changeset
    24
99d003723474 data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff changeset
    25
        public ActionAddAnnotation(UserControlTimeLine uct)
99d003723474 data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff changeset
    26
        {
99d003723474 data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff changeset
    27
            myTimeline = uct;
99d003723474 data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff changeset
    28
        }
99d003723474 data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff changeset
    29
99d003723474 data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff changeset
    30
        public void Execute()
99d003723474 data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff changeset
    31
        {
99d003723474 data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff changeset
    32
            if (myTimeline != null)
99d003723474 data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff changeset
    33
                myTimeline.addAnnotation();
99d003723474 data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff changeset
    34
        }
99d003723474 data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff changeset
    35
    }
99d003723474 data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff changeset
    36
}