lab-3 in process
This commit is contained in:
parent
69969701cd
commit
2db8be3335
@ -8,11 +8,15 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Remove="images\forest.png" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Resource Include="images\forest.png" />
|
||||
<Resource Include="images\desert.png">
|
||||
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="images\desert2.png">
|
||||
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="images\forest.png">
|
||||
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
@ -19,8 +19,8 @@
|
||||
<ScrollViewer CanContentScroll="True" VerticalScrollBarVisibility="Hidden">
|
||||
<StackPanel Grid.Row="0" Grid.Column="0" HorizontalAlignment="Center"
|
||||
VerticalAlignment="Stretch" Orientation="Vertical">
|
||||
<Button Margin="10,5,10,5" Padding="3,3,3,3">Forest</Button>
|
||||
<Button Margin="10,5,10,5" Padding="3,3,3,3">Desert</Button>
|
||||
<Button Margin="10,5,10,5" Padding="3,3,3,3" Click="ButtonForest_Click">Forest</Button>
|
||||
<Button Margin="10,5,10,5" Padding="3,3,3,3" Click="ButtonDesert_Click">Desert</Button>
|
||||
<Button Margin="10,5,10,5" Padding="3,3,3,3">Jungle</Button>
|
||||
<Button Margin="10,5,10,5" Padding="3,3,3,3">Tundra</Button>
|
||||
<Button Margin="10,5,10,5" Padding="3,3,3,3">Taiga</Button>
|
||||
@ -30,14 +30,16 @@
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
</Border>
|
||||
<DockPanel Grid.Row="0" Grid.Column="1" Background="Olive">
|
||||
<DockPanel Name="PanelMenu" Grid.Row="0" Grid.Column="1" Background="Olive">
|
||||
<StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal"
|
||||
HorizontalAlignment="Center" VerticalAlignment="Center">
|
||||
<Button Margin="10,5,10,5" Padding="3,3,3,3">Execute</Button>
|
||||
<Button Margin="10,5,10,5" Padding="3,3,3,3">Cancel</Button>
|
||||
</StackPanel>
|
||||
<DockPanel Background="Black">
|
||||
<Image Source="images/forest.png"/>
|
||||
<Viewbox>
|
||||
<Image Name="ImageNature" Source="/Resources/images/desert.png"/>
|
||||
</Viewbox>
|
||||
</DockPanel>
|
||||
</DockPanel>
|
||||
</Grid>
|
||||
|
@ -1,17 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace Interfaces
|
||||
{
|
||||
@ -24,5 +14,16 @@ namespace Interfaces
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void ButtonDesert_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
ImageNature.Source = new BitmapImage(new Uri("/Resources/images/desert.png", UriKind.Relative));
|
||||
|
||||
}
|
||||
|
||||
private void ButtonForest_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
ImageNature.Source = new BitmapImage(new Uri("/Resources/images/forest.png", UriKind.Relative));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
BIN
Interfaces/Interfaces/Resources/images/desert.png
Normal file
BIN
Interfaces/Interfaces/Resources/images/desert.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1017 KiB |
Before Width: | Height: | Size: 880 KiB After Width: | Height: | Size: 880 KiB |
Binary file not shown.
Before Width: | Height: | Size: 165 B |
Loading…
Reference in New Issue
Block a user