lab-6
This commit is contained in:
parent
ac1b47b546
commit
80351d2e2d
@ -20,6 +20,9 @@
|
||||
<Resource Include="Resources\images\sea2.png">
|
||||
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Resources\sounds\forest.wav">
|
||||
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
@ -72,12 +72,14 @@
|
||||
Background="{StaticResource SeaBackgroundColor}">
|
||||
<StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal"
|
||||
HorizontalAlignment="Center" VerticalAlignment="Center">
|
||||
<Button Name="ButtonExecute" Margin="10,5,10,5" Padding="3,3,3,3">Execute</Button>
|
||||
<Button Name="ButtonCancel" Margin="10,5,10,5" Padding="3,3,3,3">Cancel</Button>
|
||||
<Button Name="ButtonExecute" Margin="10,5,10,5" Padding="3,3,3,3" Click="ButtonExecute_Click">Execute</Button>
|
||||
<Button Name="ButtonCancel" Margin="10,5,10,5" Padding="3,3,3,3" Click="ButtonCancel_Click">Cancel</Button>
|
||||
<MediaElement Name="Sound" LoadedBehavior="Manual" UnloadedBehavior="Close"
|
||||
Source="/Resources/sounds/forest.wav"/>
|
||||
</StackPanel>
|
||||
<DockPanel Background="Black">
|
||||
<Viewbox>
|
||||
<Image Name="ImageNature" Source="/Resources/images/sea.png"/>
|
||||
<Image Name="ImageNature" Source="/Resources/images/sea2.png"/>
|
||||
</Viewbox>
|
||||
</DockPanel>
|
||||
</DockPanel>
|
||||
|
@ -30,8 +30,18 @@ namespace Interfaces
|
||||
|
||||
private void ButtonSea_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
ImageNature.Source = new BitmapImage(new Uri("/Resources/images/sea.png", UriKind.Relative));
|
||||
ImageNature.Source = new BitmapImage(new Uri("/Resources/images/sea2.png", UriKind.Relative));
|
||||
PanelMenu.Background = (Brush)TryFindResource("SeaBackgroundColor");
|
||||
}
|
||||
|
||||
private void ButtonExecute_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Sound.Play();
|
||||
}
|
||||
|
||||
private void ButtonCancel_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Sound.Pause();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
BIN
Interfaces/Interfaces/Resources/sounds/forest.wav
Normal file
BIN
Interfaces/Interfaces/Resources/sounds/forest.wav
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user