Compare commits

..

5 Commits
main ... Lab4

Author SHA1 Message Date
nikbel2004@outlook.com
f9cea4042e Лабораторная работа 4 2024-04-05 12:04:33 +04:00
nikbel2004@outlook.com
38d99503cd Лабораторная работа 4 2024-04-05 11:59:35 +04:00
nikbel2004@outlook.com
aa02bd5976 Лабораторная работа 3 2024-04-05 11:46:20 +04:00
nikbel2004@outlook.com
1ab51b7b8a Лабораторная работа 2 2024-03-22 12:02:15 +04:00
nikbel2004@outlook.com
7c09322623 Лабораторная работа 1 2024-03-22 11:53:09 +04:00
12 changed files with 226 additions and 0 deletions

25
Lab4/Lab4.sln Normal file
View File

@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.7.34202.233
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lab4", "Lab4\Lab4.csproj", "{E5D79941-0705-43CF-8F48-9C0FD532C9CF}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{E5D79941-0705-43CF-8F48-9C0FD532C9CF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E5D79941-0705-43CF-8F48-9C0FD532C9CF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E5D79941-0705-43CF-8F48-9C0FD532C9CF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E5D79941-0705-43CF-8F48-9C0FD532C9CF}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {4E809292-D6D4-4727-8BAF-CBC36EEB4783}
EndGlobalSection
EndGlobal

9
Lab4/Lab4/App.xaml Normal file
View File

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

17
Lab4/Lab4/App.xaml.cs Normal file
View File

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
namespace Lab4
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}
}

10
Lab4/Lab4/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)
)]

BIN
Lab4/Lab4/Images/exit.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
Lab4/Lab4/Images/foto.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 KiB

BIN
Lab4/Lab4/Images/foto2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

BIN
Lab4/Lab4/Images/foto3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

10
Lab4/Lab4/Lab4.csproj Normal file
View File

@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWPF>true</UseWPF>
</PropertyGroup>
</Project>

127
Lab4/Lab4/MainWindow.xaml Normal file
View File

@ -0,0 +1,127 @@
<Window x:Class="Lab4.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:Lab4"
mc:Ignorable="d"
Title="MainWindow" Height="640" Width="900">
<Window.Resources>
<ImageBrush x:Key="TileBrush" TileMode="Tile"
ViewportUnits="Absolute" Viewport="0 0 30 20"
ImageSource="E:\2 cource\TSCHMI\Labs\Lab3\Lab3\Lab3\Images\exit.png" Opacity="0.3"/>
<ImageBrush x:Key="TileBrushCourse" TileMode="Tile"
ViewportUnits="Absolute" Viewport="0 0 30 20"
ImageSource="E:\2 cource\TSCHMI\Labs\Lab3\Lab3\Lab3\Images\unnamed.jpg" Opacity="0.3"></ImageBrush>
<Style x:Key="btnPicture" TargetType="Button">
<Setter Property="Control.HorizontalAlignment" Value="Center" />
<Setter Property="TextBlock.Background" Value="#90F5DF" />
<Setter Property="TextBlock.Foreground" Value="Blue" />
<Setter Property="FontFamily" Value="Times New Roman"/>
<Setter Property="FontSize" Value="16"/>
<Setter Property="Border.BorderBrush" Value="#FFA500"/>
<Setter Property="Border.BorderThickness" Value="3"/>
</Style>
<Style x:Key="buttons" TargetType="Button">
<Setter Property="FontFamily" Value="Times New Roman"/>
<Setter Property="FontSize" Value="16"/>
</Style>
<Style x:Key="Title" TargetType="Label">
<Setter Property="FontFamily" Value="Book Antiqua"/>
<Setter Property="FontSize" Value="24"/>
<Setter Property="FontWeight" Value="Bold"/>
</Style>
<Style x:Key="textStyle">
<Setter Property="TextBlock.FontFamily" Value="Book Antiqua"/>
<Setter Property="TextBlock.FontSize" Value="12"/>
<Setter Property="TextBlock.Foreground" Value="#191970"/>
<Setter Property="TextBlock.Margin" Value="10"/>
<Setter Property="TextBlock.MaxWidth" Value="250" />
<Setter Property="Control.VerticalAlignment" Value="Center" />
<Setter Property="Control.HorizontalAlignment" Value="Center" />
</Style>
<SolidColorBrush x:Key="OrangeBrush" Color="#FFA500" />
</Window.Resources>
<Grid x:Name="MainGrid" Background="AliceBlue">
<Grid.RowDefinitions>
<RowDefinition Height="1.5*"/>
<RowDefinition Height="10*"/>
<RowDefinition Height="1.5*"/>
</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="3">
<StackPanel Name="ButtonPanel" Background="#5F5F5F">
<Image Source="E:\2 cource\TSCHMI\Labs\Lab3\Lab3\Lab3\Images\unnamed.jpg" Margin="25"/>
<Button Margin="20" Foreground="Blue" BorderThickness="3" BorderBrush="{StaticResource OrangeBrush}" Background="#90F5DF">
Галерея
</Button>
<Button Margin="20" Foreground="Blue" BorderBrush="{StaticResource OrangeBrush}" BorderThickness="3" Background="#90F5DF">
Клипы
</Button>
<Button x:Name="btnAnimation1" Style="{StaticResource buttons}" Margin="5">
<Button.Content>
<Image Source="E:\2 cource\TSCHMI\Labs\Lab3\Lab3\Lab3\Images\foto.jpg" Stretch="UniformToFill" />
</Button.Content>
</Button>
<Button x:Name="btnAnimation2" Style="{StaticResource buttons}" Margin="5">
<Button.Content>
<Image Source="E:\2 cource\TSCHMI\Labs\Lab3\Lab3\Lab3\Images\foto2.jpg" Stretch="UniformToFill"/>
</Button.Content>
</Button>
<Button x:Name="btnAnimation3" Style="{StaticResource buttons}" Margin="5">
<Button.Content>
<Image Source="E:\2 cource\TSCHMI\Labs\Lab3\Lab3\Lab3\Images\foto3.jpg" Stretch="UniformToFill"/>
</Button.Content>
</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 Foreground="#FFA500" Style="{StaticResource Title}">
<Bold>Видеоплеер UlPlayer</Bold>
</Label>
</WrapPanel>
</Border>
<Border Grid.Column="2" Grid.Row="1" Grid.RowSpan="2" BorderBrush="DarkOliveGreen" BorderThickness="3, 0, 0, 0">
<StackPanel>
<Label FontSize="18" Foreground="#FFA500" Style="{StaticResource textStyle}" >
<Bold>Инструменты</Bold>
</Label>
<Button Name="btn1" Style="{StaticResource buttons}" Margin="10">Добавить видео</Button>
<Button Name="btn2" Style="{StaticResource buttons}" Margin="10" >Удалить видео</Button>
<Button Name="btn3" Style="{StaticResource buttons}" Margin="10" >Сменить видео</Button>
<Button Name="btn4" Style="{StaticResource buttons}" Margin="10" Background="{StaticResource TileBrushCourse}">Включить звук</Button>
<Button Name="btn5" Style="{StaticResource buttons}" Background="{StaticResource TileBrush}" Margin="10">Выключить звук</Button>
<Button Name="btn6" Margin="15" Foreground="Blue" BorderBrush="#FFA500" BorderThickness="3" Background="#90F5DF">Запуск</Button>
<Button Name="btn7" Margin="15" Foreground="Blue" BorderBrush="#FFA500" BorderThickness="3" Background="#90F5DF">Стоп</Button>
<Button Margin="10" Style="{StaticResource btnPicture}">Спрятать интерфейс</Button>
<Button Margin="10" Style="{StaticResource btnPicture}">Показать интерфейс</Button>
</StackPanel>
</Border>
<Rectangle Stroke="Black" StrokeThickness="3" Margin="10" Grid.Column="1" Grid.Row="1" MaxHeight="250"/>
<Slider Name="vol" Grid.Column="1" Grid.Row="2" Maximum="1" Value="0.5" LargeChange="0.1" SmallChange="0.01" Margin="10" VerticalAlignment="Center"/>
</Grid>
</Window>

View File

@ -0,0 +1,28 @@
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 Lab4
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
}
}