лабы 1 и 2
This commit is contained in:
parent
b3dc4228d5
commit
53f3f356bd
25
project/project.sln
Normal file
25
project/project.sln
Normal file
@ -0,0 +1,25 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.9.34714.143
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "project", "project\project.csproj", "{1047D4CD-2042-4F56-957C-E270470DFAAA}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{1047D4CD-2042-4F56-957C-E270470DFAAA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{1047D4CD-2042-4F56-957C-E270470DFAAA}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{1047D4CD-2042-4F56-957C-E270470DFAAA}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{1047D4CD-2042-4F56-957C-E270470DFAAA}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {10CCA120-7172-4F83-A2A6-35ADC8170BD2}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
9
project/project/App.xaml
Normal file
9
project/project/App.xaml
Normal file
@ -0,0 +1,9 @@
|
||||
<Application x:Class="project.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="clr-namespace:project"
|
||||
StartupUri="MainWindow.xaml">
|
||||
<Application.Resources>
|
||||
|
||||
</Application.Resources>
|
||||
</Application>
|
14
project/project/App.xaml.cs
Normal file
14
project/project/App.xaml.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using System.Configuration;
|
||||
using System.Data;
|
||||
using System.Windows;
|
||||
|
||||
namespace project
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for App.xaml
|
||||
/// </summary>
|
||||
public partial class App : Application
|
||||
{
|
||||
}
|
||||
|
||||
}
|
10
project/project/AssemblyInfo.cs
Normal file
10
project/project/AssemblyInfo.cs
Normal file
@ -0,0 +1,10 @@
|
||||
using System.Windows;
|
||||
|
||||
[assembly: ThemeInfo(
|
||||
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
|
||||
//(used if a resource is not found in the page,
|
||||
// or application resource dictionaries)
|
||||
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
|
||||
//(used if a resource is not found in the page,
|
||||
// app, or any theme specific resource dictionaries)
|
||||
)]
|
82
project/project/MainWindow.xaml
Normal file
82
project/project/MainWindow.xaml
Normal file
@ -0,0 +1,82 @@
|
||||
<Window x:Class="project.MainWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:project"
|
||||
mc:Ignorable="d"
|
||||
Title="MainWindow" Height="520" Width="900" MinHeight="520" MinWidth="600">
|
||||
<Grid x:Name="GridMain">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*"></RowDefinition>
|
||||
<RowDefinition Height="6*"></RowDefinition>
|
||||
<RowDefinition Height="6*"></RowDefinition>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="3*"></ColumnDefinition>
|
||||
<ColumnDefinition Width="3*"></ColumnDefinition>
|
||||
<ColumnDefinition Width="3*"></ColumnDefinition>
|
||||
<ColumnDefinition Width="2.5*"></ColumnDefinition>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Grid.Row="0" Grid.ColumnSpan="3" Text="Игры" HorizontalAlignment="Center" FontSize="20"/>
|
||||
<StackPanel Grid.Row="1" Grid.Column="0" VerticalAlignment="Stretch">
|
||||
<Viewbox Margin="5">
|
||||
<Image x:Name="pictureGame1" Source="C:\Users\shotb\source\repos\TSCHMI\project\Картинки\eldenring.jpg" />
|
||||
</Viewbox>
|
||||
<Button x:Name="butGame1" Content="Add" Margin="5,0,5,0" HorizontalAlignment="Stretch"/>
|
||||
<TextBlock Text="Elden Ring" Margin="5" HorizontalAlignment="Center" FontSize="20"/>
|
||||
<TextBlock x:Name="cost1" Text="2100 р." Margin="5" HorizontalAlignment="Center" FontSize="15"/>
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Row="1" Grid.Column="1" VerticalAlignment="Stretch">
|
||||
<Viewbox Margin="5">
|
||||
<Image x:Name="pictureGame2" Source="C:\Users\shotb\source\repos\TSCHMI\project\Картинки\terraria.jpg" />
|
||||
</Viewbox>
|
||||
<Button x:Name="butGame2" Content="Add" Margin="5,0,5,0" HorizontalAlignment="Stretch"/>
|
||||
<TextBlock Text="Terraria" Margin="5" HorizontalAlignment="Center" FontSize="20"/>
|
||||
<TextBlock x:Name="cost2" Text="210 р." Margin="5" HorizontalAlignment="Center" FontSize="15"/>
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Row="1" Grid.Column="2" VerticalAlignment="Stretch">
|
||||
<Viewbox Margin="5">
|
||||
<Image x:Name="pictureGame3" Source="C:\Users\shotb\source\repos\TSCHMI\project\Картинки\sekiro.jpg" />
|
||||
</Viewbox>
|
||||
<Button x:Name="butGame3" Content="Add" Margin="5,0,5,0" HorizontalAlignment="Stretch"/>
|
||||
<TextBlock Text="Sekiro" Margin="5" HorizontalAlignment="Center" FontSize="20"/>
|
||||
<TextBlock x:Name="cost3" Text="2300 р." Margin="5" HorizontalAlignment="Center" FontSize="15"/>
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Row="2" Grid.Column="0" VerticalAlignment="Stretch">
|
||||
<Viewbox Margin="5">
|
||||
<Image x:Name="pictureGame4" Source="C:\Users\shotb\source\repos\TSCHMI\project\Картинки\risk-of-rain-returns.jpg" />
|
||||
</Viewbox>
|
||||
<Button x:Name="butGame4" Content="Add" Margin="5,0,5,0" HorizontalAlignment="Stretch"/>
|
||||
<TextBlock Text="Risk of Rain" Margin="5" HorizontalAlignment="Center" FontSize="20"/>
|
||||
<TextBlock x:Name="cost4" Text="700 р." Margin="5" HorizontalAlignment="Center" FontSize="15"/>
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Row="2" Grid.Column="1" VerticalAlignment="Stretch">
|
||||
<Viewbox Margin="5">
|
||||
<Image x:Name="pictureGame5" Source="C:\Users\shotb\source\repos\TSCHMI\project\Картинки\poe.jpg" />
|
||||
</Viewbox>
|
||||
<Button x:Name="butGame5" Content="Add" Margin="5,0,5,0" HorizontalAlignment="Stretch"/>
|
||||
<TextBlock Text="Path of Exile" Margin="5" HorizontalAlignment="Center" FontSize="20"/>
|
||||
<TextBlock x:Name="cost5" Text="500 р." Margin="5" HorizontalAlignment="Center" FontSize="15"/>
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Row="2" Grid.Column="2" VerticalAlignment="Stretch">
|
||||
<Viewbox Margin="5">
|
||||
<Image x:Name="pictureGame6" Source="C:\Users\shotb\source\repos\TSCHMI\project\Картинки\hoi5.jpg" />
|
||||
</Viewbox>
|
||||
<Button x:Name="butGame6" Content="Add" Margin="5,0,5,0" HorizontalAlignment="Stretch"/>
|
||||
<TextBlock Text="Hearts of Iron 5" Margin="5" HorizontalAlignment="Center" FontSize="20"/>
|
||||
<TextBlock x:Name="cost6" Text="2100 р." Margin="5" HorizontalAlignment="Center" FontSize="15"/>
|
||||
</StackPanel>
|
||||
<TextBlock Grid.Row="0" Grid.Column="3" Text="Итог" HorizontalAlignment="Center" FontSize="20" />
|
||||
<StackPanel Grid.Row="1" Grid.RowSpan="2" Grid.Column="3">
|
||||
<ListView FontSize="20">
|
||||
<TextBlock>Terraria</TextBlock>
|
||||
<TextBlock>Sekiro</TextBlock>
|
||||
<TextBlock>Risk of Rain</TextBlock>
|
||||
<TextBlock>Elden Ring</TextBlock>
|
||||
</ListView>
|
||||
<TextBlock Text="Сумма:----" FontSize="20"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
|
||||
</Window>
|
24
project/project/MainWindow.xaml.cs
Normal file
24
project/project/MainWindow.xaml.cs
Normal file
@ -0,0 +1,24 @@
|
||||
using System.Text;
|
||||
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 project
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for MainWindow.xaml
|
||||
/// </summary>
|
||||
public partial class MainWindow : Window
|
||||
{
|
||||
public MainWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
11
project/project/project.csproj
Normal file
11
project/project/project.csproj
Normal file
@ -0,0 +1,11 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<TargetFramework>net8.0-windows</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<UseWPF>true</UseWPF>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
BIN
project/Картинки/eldenring.jpg
Normal file
BIN
project/Картинки/eldenring.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 38 KiB |
BIN
project/Картинки/hoi5.jpg
Normal file
BIN
project/Картинки/hoi5.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 273 KiB |
BIN
project/Картинки/poe.jpg
Normal file
BIN
project/Картинки/poe.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 122 KiB |
BIN
project/Картинки/risk-of-rain-returns.jpg
Normal file
BIN
project/Картинки/risk-of-rain-returns.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 53 KiB |
BIN
project/Картинки/sekiro.jpg
Normal file
BIN
project/Картинки/sekiro.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 32 KiB |
BIN
project/Картинки/terraria.jpg
Normal file
BIN
project/Картинки/terraria.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 86 KiB |
Loading…
x
Reference in New Issue
Block a user