the end
This commit is contained in:
parent
e59a00648f
commit
099fb67ad7
BIN
Kanye East _Fortnite Balls Freestyle_ Official Lyrics .mp4
Normal file
BIN
Kanye East _Fortnite Balls Freestyle_ Official Lyrics .mp4
Normal file
Binary file not shown.
@ -80,8 +80,11 @@
|
||||
<Image Source="/Source/ye1.png" Margin="5,0,10,0"/>
|
||||
</Border>
|
||||
|
||||
<Border Grid.Column="1" Grid.Row="1" HorizontalAlignment="Stretch" MaxWidth =" 200">
|
||||
<TextBlock TextWrapping="Wrap" HorizontalAlignment="Stretch" FontSize="12" FontWeight="Bold" Text="Канье Омари Уэст — известный американский рэпер, продюсер.
|
||||
<Border Grid.Column="1" Grid.Row="2" HorizontalAlignment="Stretch" MaxWidth =" 200">
|
||||
<TextBlock TextWrapping="Wrap" HorizontalAlignment="Stretch" FontSize="9" FontWeight="Bold" Text="
|
||||
|
||||
|
||||
Канье Омари Уэст — известный американский рэпер, продюсер.
|
||||
Канье Уэст сначала стал известен как продюсер, создатель хитов для таких исполнителей, как Jay-Z, Ludacris, Талиб Квели и Алиша Киз. Затем он стал рэпером, выиграл 21 премию «Грэмми», продажи его альбомов и синглов в цифровом формате и на физических носителях превысили 121 миллион экземпляров." >
|
||||
</TextBlock>
|
||||
</Border>
|
||||
@ -106,9 +109,21 @@
|
||||
</StackPanel>
|
||||
</Border>
|
||||
|
||||
<Border Grid.Column="1" Grid.Row="2" MaxWidth="200">
|
||||
<Image Source =" Source\ye2.jpg" Margin="5,5,5,0" />
|
||||
</Border>
|
||||
<Grid Grid.Column="1" Grid.Row="1">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<MediaElement Source="C:\Users\dimoo\OneDrive\Рабочий стол\Учеба\2 курс\Лабы 2 курс\ТСЧМИ\TSChMI\Source\Kanye East _Fortnite Balls Freestyle_ Official Lyrics .mp4" LoadedBehavior="Manual" Name="mePlayer" />
|
||||
<StackPanel Grid.Row="1">
|
||||
<Label Name="lblStatus" Content="Not playing..." HorizontalContentAlignment="Center" Margin="5" />
|
||||
<WrapPanel HorizontalAlignment="Center">
|
||||
<Button Name="butnPlay" Click="butnPlay_Click">Play</Button>
|
||||
<Button Name="butnPause" Margin="5,0" Click="butnPause_Click">Pause</Button>
|
||||
<Button Name="butnStop" Click="butnStop_Click">Stop</Button>
|
||||
</WrapPanel>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
|
||||
<Border Grid.Column="2" Grid.Row="2">
|
||||
<StackPanel >
|
||||
|
@ -12,6 +12,7 @@ using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Threading;
|
||||
|
||||
namespace TSChMI
|
||||
{
|
||||
@ -20,11 +21,6 @@ namespace TSChMI
|
||||
/// </summary>
|
||||
public partial class MainWindow : Window
|
||||
{
|
||||
public MainWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void btnSong1_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
MessageBox.Show("Крутая песня");
|
||||
@ -79,5 +75,42 @@ namespace TSChMI
|
||||
{
|
||||
MessageBox.Show("Пауза");
|
||||
}
|
||||
|
||||
public MainWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
DispatcherTimer timer = new DispatcherTimer();
|
||||
timer.Interval = TimeSpan.FromSeconds(1);
|
||||
timer.Tick += timer_Tick;
|
||||
timer.Start();
|
||||
}
|
||||
|
||||
void timer_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (mePlayer.Source != null)
|
||||
{
|
||||
if (mePlayer.NaturalDuration.HasTimeSpan)
|
||||
lblStatus.Content = String.Format("{0} / {1}", mePlayer.Position.ToString(@"mm\:ss"), mePlayer.NaturalDuration.TimeSpan.ToString(@"mm\:ss"));
|
||||
}
|
||||
else
|
||||
lblStatus.Content = "No file selected...";
|
||||
}
|
||||
|
||||
private void butnPause_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
mePlayer.Pause();
|
||||
}
|
||||
|
||||
private void butnStop_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
mePlayer.Stop();
|
||||
}
|
||||
|
||||
private void butnPlay_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
mePlayer.Play();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Binary file not shown.
@ -100,5 +100,8 @@
|
||||
<ItemGroup>
|
||||
<Resource Include="Source\ye1.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Source\Kanye East _Fortnite Balls Freestyle_ Official Lyrics .mp4" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
Loading…
Reference in New Issue
Block a user