78
|
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 |
} |