-
Notifications
You must be signed in to change notification settings - Fork 0
/
artists_page.xaml.cs
159 lines (144 loc) · 5.88 KB
/
artists_page.xaml.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238
namespace video_player
{
/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
/// </summary>
public sealed partial class artists_page : Page
{
int next_music = 1;
public artists_page()
{
this.InitializeComponent();
indicator.Margin = new Thickness(315, 629, 0, 0);
}
private void video_player_page_Tapped(object sender, TappedRoutedEventArgs e)
{
this.Frame.Navigate(typeof(video_player));
}
private void fredie_mercury_Tapped(object sender, TappedRoutedEventArgs e)
{
indicator.Margin = new Thickness(315, 629, 0, 0);
biography_search.Navigate(new Uri("https://en.wikipedia.org/wiki/Freddie_Mercury"));
}
private void george_micheal_Tapped(object sender, TappedRoutedEventArgs e)
{
indicator.Margin = new Thickness(438, 629, 0, 0);
biography_search.Navigate(new Uri("https://en.wikipedia.org/wiki/George_Michael"));
}
private void janet_jackson_Tapped(object sender, TappedRoutedEventArgs e)
{
indicator.Margin = new Thickness(560, 630, 0, 0);
biography_search.Navigate(new Uri("https://en.wikipedia.org/wiki/Janet_Jackson"));
}
private void micheal_jackson_Tapped(object sender, TappedRoutedEventArgs e)
{
indicator.Margin = new Thickness(676, 630, 0, 0);
biography_search.Navigate(new Uri("https://en.wikipedia.org/wiki/Micheal_Jackson"));
}
private void madonna_Tapped(object sender, TappedRoutedEventArgs e)
{
indicator.Margin = new Thickness(792, 630, 0, 0);
biography_search.Navigate(new Uri("https://en.wikipedia.org/wiki/Madonna"));
}
private void cc_factory_Tapped(object sender, TappedRoutedEventArgs e)
{
indicator.Margin = new Thickness(912, 630, 0, 0);
biography_search.Navigate(new Uri("https://en.wikipedia.org/wiki/C%2BC_Music_Factory"));
}
private void go_button_Tapped(object sender, TappedRoutedEventArgs e)
{
next_music++;
if(next_music == 1)
{
indicator.Margin = new Thickness(315, 629, 0, 0);
biography_search.Navigate(new Uri("https://en.wikipedia.org/wiki/Freddie_Mercury"));
}
else if (next_music == 2)
{
indicator.Margin = new Thickness(438, 629, 0, 0);
biography_search.Navigate(new Uri("https://en.wikipedia.org/wiki/George_Michael"));
}
else if (next_music == 3)
{
indicator.Margin = new Thickness(560, 630, 0, 0);
biography_search.Navigate(new Uri("https://en.wikipedia.org/wiki/Janet_Jackson"));
}
else if (next_music == 4)
{
indicator.Margin = new Thickness(676, 630, 0, 0);
biography_search.Navigate(new Uri("https://en.wikipedia.org/wiki/Micheal_Jackson"));
}
else if (next_music == 5)
{
indicator.Margin = new Thickness(792, 630, 0, 0);
biography_search.Navigate(new Uri("https://en.wikipedia.org/wiki/Madonna"));
}
else if (next_music == 6)
{
indicator.Margin = new Thickness(912, 630, 0, 0);
biography_search.Navigate(new Uri("https://en.wikipedia.org/wiki/C%2BC_Music_Factory"));
}
else if (next_music == 7)
{
next_music--;
}
}
private void back_button_Tapped(object sender, TappedRoutedEventArgs e)
{
next_music--;
if(next_music == 0)
{
next_music++;
}
else if (next_music == 1)
{
indicator.Margin = new Thickness(315, 629, 0, 0);
biography_search.Navigate(new Uri("https://en.wikipedia.org/wiki/Freddie_Mercury"));
}
else if (next_music == 2)
{
indicator.Margin = new Thickness(438, 629, 0, 0);
biography_search.Navigate(new Uri("https://en.wikipedia.org/wiki/George_Michael"));
}
else if (next_music == 3)
{
indicator.Margin = new Thickness(560, 630, 0, 0);
biography_search.Navigate(new Uri("https://en.wikipedia.org/wiki/Janet_Jackson"));
}
else if (next_music == 4)
{
indicator.Margin = new Thickness(676, 630, 0, 0);
biography_search.Navigate(new Uri("https://en.wikipedia.org/wiki/Micheal_Jackson"));
}
else if (next_music == 5)
{
indicator.Margin = new Thickness(792, 630, 0, 0);
biography_search.Navigate(new Uri("https://en.wikipedia.org/wiki/Madonna"));
}
else if (next_music == 6)
{
indicator.Margin = new Thickness(912, 630, 0, 0);
biography_search.Navigate(new Uri("https://en.wikipedia.org/wiki/C%2BC_Music_Factory"));
}
}
private void about_us_Tapped(object sender, TappedRoutedEventArgs e)
{
this.Frame.Navigate(typeof(about_us));
}
}
}