Лабораторная работа 2

This commit is contained in:
nikbel2004@outlook.com 2024-03-22 12:02:15 +04:00
parent 7c09322623
commit 1ab51b7b8a
10 changed files with 99 additions and 54 deletions

View File

@ -1,10 +0,0 @@
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)
)]

View File

@ -1,22 +0,0 @@
<Window x:Class="Lab1.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:Lab1"
mc:Ignorable="d"
Title="MainWindow" Height="800" Width="1200">
<Grid x:Name="MainGrid" Background="AliceBlue" ShowGridLines="True">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="10*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="5*"/>
<ColumnDefinition Width="1.5*"/>
</Grid.ColumnDefinitions>
</Grid>
</Window>

View File

@ -1,9 +1,9 @@
 
Microsoft Visual Studio Solution File, Format Version 12.00 Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17 # Visual Studio Version 17
VisualStudioVersion = 17.7.34202.233 VisualStudioVersion = 17.9.34622.214
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lab1", "Lab1\Lab1.csproj", "{CB9F367A-8891-4D9F-AB59-2589A6E55AD6}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lab2", "Lab2\Lab2.csproj", "{53416734-E4DD-4E45-9FBA-AD26097BEA8F}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
@ -11,15 +11,15 @@ Global
Release|Any CPU = Release|Any CPU Release|Any CPU = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution GlobalSection(ProjectConfigurationPlatforms) = postSolution
{CB9F367A-8891-4D9F-AB59-2589A6E55AD6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {53416734-E4DD-4E45-9FBA-AD26097BEA8F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CB9F367A-8891-4D9F-AB59-2589A6E55AD6}.Debug|Any CPU.Build.0 = Debug|Any CPU {53416734-E4DD-4E45-9FBA-AD26097BEA8F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CB9F367A-8891-4D9F-AB59-2589A6E55AD6}.Release|Any CPU.ActiveCfg = Release|Any CPU {53416734-E4DD-4E45-9FBA-AD26097BEA8F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CB9F367A-8891-4D9F-AB59-2589A6E55AD6}.Release|Any CPU.Build.0 = Release|Any CPU {53416734-E4DD-4E45-9FBA-AD26097BEA8F}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE
EndGlobalSection EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {E5181B13-8E6F-4A35-9922-9298F305A85A} SolutionGuid = {9792C90A-8C03-49A8-862B-A01F8115DAE1}
EndGlobalSection EndGlobalSection
EndGlobal EndGlobal

View File

@ -1,7 +1,7 @@
<Application x:Class="Lab1.App" <Application x:Class="Lab2.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:Lab1" xmlns:local="clr-namespace:Lab2"
StartupUri="MainWindow.xaml"> StartupUri="MainWindow.xaml">
<Application.Resources> <Application.Resources>

View File

@ -1,12 +1,8 @@
using System; using System.Configuration;
using System.Collections.Generic;
using System.Configuration;
using System.Data; using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows; using System.Windows;
namespace Lab1 namespace Lab2
{ {
/// <summary> /// <summary>
/// Interaction logic for App.xaml /// Interaction logic for App.xaml
@ -14,4 +10,5 @@ namespace Lab1
public partial class App : Application public partial class App : Application
{ {
} }
} }

10
Lab2/Lab2/AssemblyInfo.cs Normal file
View 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)
)]

View File

@ -4,6 +4,7 @@
<OutputType>WinExe</OutputType> <OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework> <TargetFramework>net6.0-windows</TargetFramework>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<UseWPF>true</UseWPF> <UseWPF>true</UseWPF>
</PropertyGroup> </PropertyGroup>

73
Lab2/Lab2/MainWindow.xaml Normal file
View File

@ -0,0 +1,73 @@
<Window x:Class="Lab2.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:Lab2"
mc:Ignorable="d"
Title="MainWindow" Height="800" Width="1200">
<Grid x:Name="MainGrid" Background="AliceBlue">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="10*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="5*"/>
<ColumnDefinition Width="1.5*"/>
</Grid.ColumnDefinitions>
<Border BorderBrush="#FFA500" BorderThickness="4" Grid.Column="0" Grid.Row="0" Grid.RowSpan="2">
<StackPanel Name="ButtonPanel" Background="#5F5F5F">
<Image Source="E:\2 cource\TSCHMI\labs\Lab2\Lab2\Lab2\src\free2.png" Margin="25"/>
<Button Margin="20" Foreground="Blue" BorderBrush="#FFA500" BorderThickness="3" Background="#90F5DF">
Галерея
</Button>
<Button Margin="20" Foreground="Blue" BorderBrush="#FFA500" BorderThickness="3" Background="#90F5DF">
Клипы
</Button>
<Button Margin="20" Foreground="Blue" BorderBrush="#FFA500" BorderThickness="3" Background="#90F5DF">
Редактор
</Button>
<Button Margin="20" Foreground="Blue" BorderBrush="#FFA500" BorderThickness="3" Background="#90F5DF">
Корзина
</Button>
<Button Margin="20" Foreground="Blue" BorderBrush="#FFA500" BorderThickness="3" Background="#90F5DF">
Просмотр видео
</Button>
</StackPanel>
</Border>
<Border Grid.Column="1" Grid.Row="0" BorderBrush="#FFA500" BorderThickness="0, 4, 4, 4" Grid.ColumnSpan="2" Background="#5F5F5F">
<WrapPanel HorizontalAlignment="Center" VerticalAlignment="Center">
<Label FontSize="18" Foreground="#FFA500" VerticalAlignment="center">
<Bold> Видеоплеер UlPlayer </Bold>
</Label>
</WrapPanel>
</Border>
<Border Grid.Column="2" Grid.Row="1" BorderBrush="DarkOliveGreen" BorderThickness="3, 0, 0, 0">
<StackPanel>
<Label FontSize="18" Foreground="#FFA500" HorizontalAlignment="Center">
<Bold>Инструменты</Bold>
</Label>
<Button Margin="15" Foreground="Blue" BorderBrush="#FFA500" BorderThickness="3" Background="#90F5DF">
Запуск
</Button>
<Button Margin="15" Foreground="Blue" BorderBrush="#FFA500" BorderThickness="3" Background="#90F5DF">
Пуск
</Button>
</StackPanel>
</Border>
<DockPanel Grid.Column="1" Grid.Row="1">
<MediaElement x:Name="LectVideo" Grid.Column="3" HorizontalAlignment="Left" Margin="0,0,0,0" Grid.Row="1" Source="" Volume="0" LoadedBehavior="Manual" Stretch="Fill">
<MediaElement.Style>
<Style/>
</MediaElement.Style>
</MediaElement>
</DockPanel>
</Grid>
</Window>

View File

@ -1,8 +1,4 @@
using System; using System.Text;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows; using System.Windows;
using System.Windows.Controls; using System.Windows.Controls;
using System.Windows.Data; using System.Windows.Data;
@ -13,7 +9,7 @@ using System.Windows.Media.Imaging;
using System.Windows.Navigation; using System.Windows.Navigation;
using System.Windows.Shapes; using System.Windows.Shapes;
namespace Lab1 namespace Lab2
{ {
/// <summary> /// <summary>
/// Interaction logic for MainWindow.xaml /// Interaction logic for MainWindow.xaml

BIN
Lab2/Lab2/src/free2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB