Compare commits

..

3 Commits
main ... Lab3

Author SHA1 Message Date
27d9897821 Lab3 почти done 2024-04-10 13:14:25 +04:00
a98e71b3a2 Lab2 done 2024-04-05 03:44:24 +04:00
533aa33e87 1Лаба готова 2024-04-05 02:00:07 +04:00
12 changed files with 146 additions and 2 deletions

View File

@ -5,8 +5,89 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:Seven__Wonders_of_the_World"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
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>
<RowDefinition Height="1000*"/>
<RowDefinition Height="1000*"/>
<RowDefinition Height="250*"/>
<RowDefinition Height="250*"/>
<RowDefinition Height="250*"/>
<RowDefinition Height="250*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="600*"/>
<ColumnDefinition Width="600*"/>
<ColumnDefinition Width="300*"/>
<ColumnDefinition Width="300*"/>
<ColumnDefinition Width="600*"/>
</Grid.ColumnDefinitions>
<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">
<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">
<Image x:Name="Picture_Mausoleum_in_Halicarnassus" Source="Sources/Mausoleum_in_Halicarnassus.jpg" Stretch="UniformToFill"/>
</Button>
<!--Описание-->
<Viewbox Grid.Column="4" Grid.Row="0" HorizontalAlignment="Center" Margin="5,5,5,5">
<StackPanel>
<TextBlock Text="1) Выберите чудо света" FontSize="14" TextWrapping="Wrap"/>
<TextBlock Text="2) Выберите изображение" FontSize="14" TextWrapping="Wrap"/>
<TextBlock Text="3) Вы замечательны" FontSize="14" TextWrapping="Wrap"/>
</StackPanel>
</Viewbox>
<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">
<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">
<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">
<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="Колосс Родосский" 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" ValueChanged="vol_ValueChanged" />
</Viewbox>
<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" Margin="20,5,20,5" Click="Pause_Click">
<Image x:Name="Picture_Pause" Source="Sources/pause.png" Stretch="UniformToFill"/>
</Button>
</Grid>
</Window>

View File

@ -24,5 +24,55 @@ namespace Seven__Wonders_of_the_World
{
InitializeComponent();
}
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)
{
}
}
}

View File

@ -94,5 +94,18 @@
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<Resource Include="Sources\Hanging_Gardens_of_Semiramis.jpg" />
<Resource Include="Sources\Mausoleum_in_Halicarnassus.jpg" />
<Resource Include="Sources\Statue_of_Zeus_in_Olympia.jpg" />
<Resource Include="Sources\Temple_of_Artemis_of_Ephesus.jpg" />
<Resource Include="Sources\The_Colossus_of_Rhodes.jpg" />
<Resource Include="Sources\The_Lighthouse_of_Alexandria.jpg" />
<Resource Include="Sources\The_Pyramid_of_Cheops.jpg" />
</ItemGroup>
<ItemGroup>
<Resource Include="Sources\pause.png" />
<Resource Include="Sources\play.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB