Compare commits

...

9 Commits
main ... Lab3

Author SHA1 Message Date
58146ac23a sdf 2024-10-10 16:00:20 +04:00
a7a32b4529 try 2 2024-09-30 13:13:21 +04:00
c19fa91c12 lab3 2024-09-27 17:49:10 +04:00
f17cb84c47 chutka 2024-09-27 17:00:38 +04:00
542ebb0bd7 lab2 try 2 2024-09-27 16:57:12 +04:00
74c119d865 Lab 2 try 1 2024-09-27 15:21:14 +04:00
d73e07a6a1 Lab2 2024-09-27 14:19:10 +04:00
5e85a53275 Lab1 try 2 2024-09-27 14:04:58 +04:00
ee85197a50 Lab1 2024-09-27 12:04:31 +04:00
8 changed files with 138 additions and 3 deletions

BIN
Lectures Presentation.pptx Normal file

Binary file not shown.

View File

@ -5,8 +5,82 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:TSChMI" xmlns:local="clr-namespace:TSChMI"
mc:Ignorable="d" mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800"> Title="Барышев Дмитрий ПИбд-23" MinHeight="400" MinWidth="600" MaxHeight="400" MaxWidth="600">
<Grid>
<Window.Resources>
<SolidColorBrush x:Key="BorderColor" Color="#7F00FF"/>
<Style TargetType="Button">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border BorderBrush="{StaticResource BorderColor}" BorderThickness="2" CornerRadius="5">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Window.Resources>
<Grid Background="{DynamicResource {x:Static SystemColors.ActiveBorderBrushKey}}">
<Grid.RowDefinitions>
<RowDefinition Height="20*"></RowDefinition>
<RowDefinition Height="170*"></RowDefinition>
<RowDefinition Height="110*"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="200*"/>
<ColumnDefinition Width="200*"/>
<ColumnDefinition Width="200*"/>
</Grid.ColumnDefinitions>
<Border Grid.Column="1" Grid.Row="0">
<Label x:Name="label" Content="Kanye West(Ye)" Grid.Column="1" Grid.Row ="0" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Column="0" Grid.Row="1" MaxWidth="200">
<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="Канье Омари Уэст — известный американский рэпер, продюсер.
Канье Уэст сначала стал известен как продюсер, создатель хитов для таких исполнителей, как Jay-Z, Ludacris, Талиб Квели и Алиша Киз. Затем он стал рэпером, выиграл 21 премию «Грэмми», продажи его альбомов и синглов в цифровом формате и на физических носителях превысили 121 миллион экземпляров." >
</TextBlock>
</Border>
<Border Grid.Column="2" Grid.Row="1">
<StackPanel >
<Label Margin="0,4" Content="Самые популярные песни" HorizontalAlignment ="Center"></Label>
<Button x:Name ="btnSong1" Content="Flashinglights" HorizontalAlignment="Stretch" Padding="4" Margin="10,0,10,0" Grid.Row="1" VerticalAlignment="Top" Click="btnSong1_Click"/>
<Button x:Name ="btnSong2" Content="Niggas in Paris" HorizontalAlignment="Stretch" Padding="4" Margin="10,5,10,0" Click="btnSong2_Click"/>
<Button x:Name ="btnSong3" Content="POWER" HorizontalAlignment="Stretch" Padding="4" Margin="10,5,10,0" Click="btnSong3_Click"/>
<Button x:Name ="btnSong4" Content="Stronger" HorizontalAlignment="Stretch" Padding="4" Margin="10,5,10,0" Click="btnSong4_Click"/>
<Button x:Name ="btnSong5" Content="I wonder" HorizontalAlignment="Stretch" Padding="4" Margin="10,5,10,0" Click="btnSong5_Click"/>
<Button x:Name ="btnSong6" Content="Fortnite balls" HorizontalAlignment="Stretch" Padding="4" Margin="10,5,10,0" Click="btnSong6_Click"/>
</StackPanel>
</Border>
<Border Grid.Column="0" Grid.Row = "2">
<StackPanel Orientation="Horizontal">
<Button x:Name ="btnPlay" Content="----- Play -----" Margin="15,29,15,29" Click="btnPlay_Click" />
<Button x:Name ="btnPause" Content="---- Pause ----" Margin="0,29,0,29" Click="btnPause_Click"/>
</StackPanel>
</Border>
<Border Grid.Column="1" Grid.Row="2" MaxWidth="200">
<Image Source =" Source\ye2.jpg" Margin="5,5,5,0" />
</Border>
<Border Grid.Column="2" Grid.Row="2">
<StackPanel >
<Label Margin="0,4" Content="Самые популярные альбомы" HorizontalAlignment ="Center"></Label>
<Button x:Name ="btnAlbum1" Content="Graduation" HorizontalAlignment="Stretch" Margin="5,0,5,0" VerticalAlignment="Top" Click="btnAlbum1_Click"/>
<Button x:Name ="btnAlbum2" Content="DONDA" HorizontalAlignment="Stretch" Margin="5,10,5,0" Click="btnAlbum2_Click"/>
<Button x:Name ="btnAlbum3" Content="VULTURES" HorizontalAlignment="Stretch" Margin="5,10,5,0" Click="btnAlbum3_Click"/>
</StackPanel>
</Border>
</Grid> </Grid>
</Window> </Window>

View File

@ -24,5 +24,60 @@ namespace TSChMI
{ {
InitializeComponent(); InitializeComponent();
} }
private void btnSong1_Click(object sender, RoutedEventArgs e)
{
MessageBox.Show("Крутая песня");
}
private void btnSong2_Click(object sender, RoutedEventArgs e)
{
MessageBox.Show("Мегакрутая песня");
}
private void btnSong3_Click(object sender, RoutedEventArgs e)
{
MessageBox.Show("Супер крутая песня");
}
private void btnSong4_Click(object sender, RoutedEventArgs e)
{
MessageBox.Show("Обалдеть какая крутая песня");
}
private void btnSong5_Click(object sender, RoutedEventArgs e)
{
MessageBox.Show("Жесть какая крутая песня");
}
private void btnSong6_Click(object sender, RoutedEventArgs e)
{
MessageBox.Show("Самая крутая песня в мире");
}
private void btnAlbum1_Click(object sender, RoutedEventArgs e)
{
MessageBox.Show("Альбом бомба");
}
private void btnAlbum2_Click(object sender, RoutedEventArgs e)
{
MessageBox.Show("Альбом мегабомба");
}
private void btnAlbum3_Click(object sender, RoutedEventArgs e)
{
MessageBox.Show("Альбом супермегабомба");
}
private void btnPlay_Click(object sender, RoutedEventArgs e)
{
MessageBox.Show("Воспроизведение");
}
private void btnPause_Click(object sender, RoutedEventArgs e)
{
MessageBox.Show("Пауза");
}
} }
} }

BIN
TSChMI/Source/ye1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 872 KiB

BIN
TSChMI/Source/ye2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

View File

@ -94,5 +94,11 @@
<ItemGroup> <ItemGroup>
<None Include="App.config" /> <None Include="App.config" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<Resource Include="Source\ye2.jpg" />
</ItemGroup>
<ItemGroup>
<Resource Include="Source\ye1.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project> </Project>

BIN
ye.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
ye1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 872 KiB