src/FingersDance.Control.SyncSource/ISyncSource.cs
branchsyncsource
changeset 78 3bf9b343158d
child 98 d20bbc845cb0
equal deleted inserted replaced
77:e95e916eb018 78:3bf9b343158d
       
     1 using System;
       
     2 using System.Collections.Generic;
       
     3 using System.Linq;
       
     4 using System.Text;
       
     5 using System.Windows;
       
     6 
       
     7 namespace FingersDance.Control.SyncSource
       
     8 {
       
     9     public enum SyncSourceState
       
    10     {
       
    11         Playing,
       
    12         Paused,
       
    13         Stopped
       
    14     }
       
    15 
       
    16     public class SyncSourceEventArg : RoutedEventArgs
       
    17     {
       
    18         public SyncSourceState OrignalState { get; set; }
       
    19     }
       
    20 
       
    21     public delegate void SyncSourceEventHandler(Object source, SyncSourceEventArg e);
       
    22 
       
    23     public interface ISyncSource
       
    24     {
       
    25         void Play();
       
    26         void Pause();
       
    27         void Stop();
       
    28         SyncSourceState State { get; set; }
       
    29         event SyncSourceEventHandler CurrentStateChanged;
       
    30     }
       
    31 }