public TrainPanel()
        {
            InitializeComponent();

            gestureIndex = new GestureIndex();
            gestureIndex.LoadDB();
            UpdateGestureList(gestureIndex.GetAllGestures());
            gestureList.SelectedIndex = 0;

            AddRectangles();
        }
        public ExercisePanel()
        {
            InitializeComponent();

            gestureIndex = new GestureIndex();
            gestureIndex.LoadDB();
            gestureDetector = new GestureDetector(gestureIndex);

            UpdateGestureList(gestureIndex.GetAllGestures());

            AddTimeRectangles();

            PlaySelectedGesture();
        }