Lab3 почти done

This commit is contained in:
Itos 2024-04-10 13:14:25 +04:00
parent a98e71b3a2
commit 27d9897821
2 changed files with 80 additions and 18 deletions

View File

@ -6,6 +6,23 @@
xmlns:local="clr-namespace:Seven__Wonders_of_the_World"
mc:Ignorable="d"
Title="Семь чудес света(Не отвечает)" Height="600" Width="1000" MinHeight="400" MinWidth="800">
<Window.Resources>
<SolidColorBrush x:Key="ButtonBackgroundColor" Color="MintCream"/>
<Style TargetType="Button">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border BorderBrush="#FF195A7D" BorderThickness="2" CornerRadius="4" Background="{StaticResource ButtonBackgroundColor}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Margin="5,5,5,5"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Window.Resources>
<Grid>
<Grid.RowDefinitions>
@ -24,13 +41,13 @@
<ColumnDefinition Width="600*"/>
</Grid.ColumnDefinitions>
<Button x:Name="AnsferPicture_The_Pyramid_of_Cheops" Grid.Column="0" Grid.Row="0" Background="White" Margin="5,5,5,5">
<Button x:Name="AnsferPicture_The_Pyramid_of_Cheops" Grid.Column="0" Grid.Row="0">
<Image x:Name="Picture_The_Pyramid_of_Cheops" Source="Sources/The_Pyramid_of_Cheops.jpg" Stretch="UniformToFill"/>
</Button>
<Button x:Name="AnsferPicture_Hanging_Gardens_of_Semiramis" Grid.Column="1" Grid.Row="0" Background="White" Margin="5,5,5,5">
<Button x:Name="AnsferPicture_Hanging_Gardens_of_Semiramis" Grid.Column="1" Grid.Row="0">
<Image x:Name="Picture_Hanging_Gardens_of_Semiramis" Source="Sources/Hanging_Gardens_of_Semiramis.jpg" Stretch="UniformToFill"/>
</Button>
<Button x:Name="AnsferPicture_Mausoleum_in_Halicarnassus" Grid.Column="2" Grid.ColumnSpan="2" Grid.Row="0" Background="White" Margin="5,5,5,5">
<Button x:Name="AnsferPicture_Mausoleum_in_Halicarnassus" Grid.Column="2" Grid.ColumnSpan="2" Grid.Row="0">
<Image x:Name="Picture_Mausoleum_in_Halicarnassus" Source="Sources/Mausoleum_in_Halicarnassus.jpg" Stretch="UniformToFill"/>
</Button>
<!--Описание-->
@ -41,35 +58,35 @@
<TextBlock Text="3) Вы замечательны" FontSize="14" TextWrapping="Wrap"/>
</StackPanel>
</Viewbox>
<Button x:Name="AnsferPicture_The_Lighthouse_of_Alexandria" Grid.Column="0" Grid.Row="1" Background="White" Margin="5,5,5,5">
<Button x:Name="AnsferPicture_The_Lighthouse_of_Alexandria" Grid.Column="0" Grid.Row="1">
<Image x:Name="Picture_The_Lighthouse_of_Alexandria" Source="Sources/The_Lighthouse_of_Alexandria.jpg" Stretch="UniformToFill"/>
</Button>
<Button x:Name="AnsferPicture_The_Colossus_of_Rhodes" Grid.Column="1" Grid.Row="1" Background="White" Margin="5,5,5,5">
<Button x:Name="AnsferPicture_The_Colossus_of_Rhodes" Grid.Column="1" Grid.Row="1">
<Image x:Name="Picture_The_Colossus_of_Rhodes" Source="Sources/The_Colossus_of_Rhodes.jpg" Stretch="UniformToFill"/>
</Button>
<Button x:Name="AnsferPicture_Statue_of_Zeus_in_Olympia" Grid.Column="2" Grid.ColumnSpan="2" Grid.Row="1" Background="White" Margin="5,5,5,5">
<Button x:Name="AnsferPicture_Statue_of_Zeus_in_Olympia" Grid.Column="2" Grid.ColumnSpan="2" Grid.Row="1">
<Image x:Name="Picture_Statue_of_Zeus_in_Olympia" Source="Sources/Statue_of_Zeus_in_Olympia.jpg" Stretch="UniformToFill"/>
</Button>
<Button x:Name="AnsferPicture_Temple_of_Artemis_of_Ephesus" Grid.Column="4" Grid.Row="1" Background="White" Margin="5,5,5,5">
<Button x:Name="AnsferPicture_Temple_of_Artemis_of_Ephesus" Grid.Column="4" Grid.Row="1">
<Image x:Name="Picture_Temple_of_Artemis_of_Ephesus" Source="Sources/Temple_of_Artemis_of_Ephesus.jpg" Stretch="UniformToFill"/>
</Button>
<Button x:Name="Button_The_Colossus_of_Rhodes" Grid.Column="0" Grid.Row="2" Content="Колосс Родосский" Margin="5,5,5,5" Background="#FF195A7D" Click="Button_The_Colossus_of_Rhodes_Click" ></Button>
<Button x:Name="Button_Temple_of_Artemis_of_Ephesus" Grid.Column="0" Grid.Row="3" Content="Храм Артемиды Эфесской" Margin="5,5,5,5" Background="#FF195A7D" ></Button>
<Button x:Name="Button_The_Lighthouse_of_Alexandria" Grid.Column="0" Grid.Row="4" Content="Александрийский маяк" Margin="5,5,5,5" Background="#FF195A7D" ></Button>
<Button x:Name="Button_The_Pyramid_of_Cheops" Grid.Column="0" Grid.Row="5" Content="Пирамида Хеопса" Margin="5,5,5,5" Background="#FF195A7D" ></Button>
<Button x:Name="Button_Statue_of_Zeus_in_Olympia" Grid.Column="1" Grid.Row="2" Content="Статуя Зевса в Олимпии" Margin="5,5,5,5" Background="#FF195A7D" ></Button>
<Button x:Name="Button_Hanging_Gardens_of_Semiramis" Grid.Column="1" Grid.Row="3" Content="Висячие сады Семирамиды" Margin="5,5,5,5" Background="#FF195A7D" ></Button>
<Button x:Name="Button_Mausoleum_in_Halicarnassus" Grid.Column="1" Grid.Row="4" Content="Галикарнасский мавзолей" Margin="5,5,5,5" Background="#FF195A7D" ></Button>
<Button x:Name="Button_The_Colossus_of_Rhodes" Grid.Column="0" Grid.Row="2" Content="Колосс Родосский" Click="Button_The_Colossus_of_Rhodes_Click" ></Button>
<Button x:Name="Button_Temple_of_Artemis_of_Ephesus" Grid.Column="0" Grid.Row="3" Content="Храм Артемиды Эфесской" Click="Button_Temple_of_Artemis_of_Ephesus_Click"></Button>
<Button x:Name="Button_The_Lighthouse_of_Alexandria" Grid.Column="0" Grid.Row="4" Content="Александрийский маяк" Click="Button_The_Lighthouse_of_Alexandria_Click"></Button>
<Button x:Name="Button_The_Pyramid_of_Cheops" Grid.Column="0" Grid.Row="5" Content="Пирамида Хеопса" Click="Button_The_Pyramid_of_Cheops_Click" ></Button>
<Button x:Name="Button_Statue_of_Zeus_in_Olympia" Grid.Column="1" Grid.Row="2" Content="Статуя Зевса в Олимпии" Click="Button_Statue_of_Zeus_in_Olympia_Click" ></Button>
<Button x:Name="Button_Hanging_Gardens_of_Semiramis" Grid.Column="1" Grid.Row="3" Content="Висячие сады Семирамиды" Click="Button_Hanging_Gardens_of_Semiramis_Click"></Button>
<Button x:Name="Button_Mausoleum_in_Halicarnassus" Grid.Column="1" Grid.Row="4" Content="Галикарнасский мавзолей" Click="Button_Mausoleum_in_Halicarnassus_Click"></Button>
<Viewbox Grid.Row="4" Grid.Column="2" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="5,5,5,5">
<Slider x:Name="vol" Maximum="1" MinHeight="50" MinWidth="200" Value="1" LargeChange="0.1" SmallChange="0.01" Height="15" />
<Slider x:Name="vol" Maximum="1" MinHeight="50" MinWidth="200" Value="1" LargeChange="0.1" SmallChange="0.01" Height="15" ValueChanged="vol_ValueChanged" />
</Viewbox>
<Button x:Name="Play" Grid.Column="2" Grid.Row="2" Grid.RowSpan="2" Background="White" Margin="20,5,20,5">
<Button x:Name="Play" Grid.Column="2" Grid.Row="2" Grid.RowSpan="2" Margin="20,5,20,5" Click="Play_Click">
<Image x:Name="Picture_Play" Source="Sources/play.png" Stretch="UniformToFill"/>
</Button>
<Button x:Name="Pause" Grid.Column="3" Grid.Row="2" Grid.RowSpan="2" Background="White" Margin="20,5,20,5">
<Button x:Name="Pause" Grid.Column="3" Grid.Row="2" Grid.RowSpan="2" Margin="20,5,20,5" Click="Pause_Click">
<Image x:Name="Picture_Pause" Source="Sources/pause.png" Stretch="UniformToFill"/>
</Button>
</Grid>

View File

@ -27,7 +27,52 @@ namespace Seven__Wonders_of_the_World
private void Button_The_Colossus_of_Rhodes_Click(object sender, RoutedEventArgs e)
{
MessageBox.Show("лялялялялллляял");
}
private void Button_Temple_of_Artemis_of_Ephesus_Click(object sender, RoutedEventArgs e)
{
}
private void Button_The_Lighthouse_of_Alexandria_Click(object sender, RoutedEventArgs e)
{
}
private void Button_The_Pyramid_of_Cheops_Click(object sender, RoutedEventArgs e)
{
}
private void Button_Statue_of_Zeus_in_Olympia_Click(object sender, RoutedEventArgs e)
{
}
private void Button_Hanging_Gardens_of_Semiramis_Click(object sender, RoutedEventArgs e)
{
}
private void Button_Mausoleum_in_Halicarnassus_Click(object sender, RoutedEventArgs e)
{
}
private void Play_Click(object sender, RoutedEventArgs e)
{
}
private void Pause_Click(object sender, RoutedEventArgs e)
{
}
private void vol_ValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e)
{
}
}
}