equal
deleted
inserted
replaced
87 isPlaying = true; |
87 isPlaying = true; |
88 try |
88 try |
89 { |
89 { |
90 MediaElementVideo.Play(); |
90 MediaElementVideo.Play(); |
91 } |
91 } |
92 catch (Exception ex) { } |
92 catch (Exception) { } |
93 } |
93 } |
94 else//Pause |
94 else//Pause |
95 { |
95 { |
96 isPlaying = false; |
96 isPlaying = false; |
97 try |
97 try |
98 { |
98 { |
99 MediaElementVideo.Pause(); |
99 MediaElementVideo.Pause(); |
100 } |
100 } |
101 catch (Exception exx) { } |
101 catch (Exception) { } |
102 } |
102 } |
103 |
103 |
104 } |
104 } |
105 |
105 |
106 private void ButtonPlayPause_Click(object sender, RoutedEventArgs e) |
106 private void ButtonPlayPause_Click(object sender, RoutedEventArgs e) |
110 isPlaying = true; |
110 isPlaying = true; |
111 try |
111 try |
112 { |
112 { |
113 MediaElementVideo.Play(); |
113 MediaElementVideo.Play(); |
114 } |
114 } |
115 catch (Exception ex) { } |
115 catch (Exception) { } |
116 |
116 |
117 } |
117 } |
118 else//Pause |
118 else//Pause |
119 { |
119 { |
120 isPlaying = false; |
120 isPlaying = false; |
121 try |
121 try |
122 { |
122 { |
123 MediaElementVideo.Pause(); |
123 MediaElementVideo.Pause(); |
124 } |
124 } |
125 catch (Exception exx) { } |
125 catch (Exception) { } |
126 //ButtonPlayPause.Background = FindResource("[Skin_1]_Play_button_xaml") as Brush; |
126 //ButtonPlayPause.Background = FindResource("[Skin_1]_Play_button_xaml") as Brush; |
127 } |
127 } |
128 } |
128 } |
129 |
129 |
130 private void ButtonFastForward_Click(object sender, RoutedEventArgs e) |
130 private void ButtonFastForward_Click(object sender, RoutedEventArgs e) |