equal
deleted
inserted
replaced
107 |
107 |
108 private void InitializeCommands() |
108 private void InitializeCommands() |
109 { |
109 { |
110 |
110 |
111 } |
111 } |
112 |
112 public void GoTo(TimeSpan pos) |
|
113 { |
|
114 Position = pos; |
|
115 Commands.GoToTime.Execute(Position,this); |
|
116 } |
113 public void LaunchTick(TimeSpan Pos) |
117 public void LaunchTick(TimeSpan Pos) |
114 { |
118 { |
115 if(Tick!=null) |
119 if(Tick!=null) |
116 { |
120 { |
117 Tick(this, new VideoViewerVMEventArgs(Pos)); |
121 Tick(this, new VideoViewerVMEventArgs(Pos)); |
120 |
124 |
121 |
125 |
122 } |
126 } |
123 public class VideoViewerVMEventArgs : EventArgs |
127 public class VideoViewerVMEventArgs : EventArgs |
124 { |
128 { |
125 public TimeSpan Position { get; set; } |
129 public TimeSpan Position { get; set; } |
126 public VideoViewerVMEventArgs(TimeSpan pos) |
130 public VideoViewerVMEventArgs(TimeSpan pos) |
127 { |
131 { |
128 Position = pos; |
132 Position = pos; |
129 } |
133 } |
130 } |
134 } |