Bläddra i källkod

Тренировка разработки интерфейса

gr672_sao 4 år sedan
förälder
incheckning
9d86f47a0d
5 ändrade filer med 104 tillägg och 0 borttagningar
  1. 37 0
      AddServices.xaml
  2. 27 0
      AddServices.xaml.cs
  3. 6 0
      App.config
  4. 9 0
      App.xaml
  5. 25 0
      Test.sln

+ 37 - 0
AddServices.xaml

@@ -0,0 +1,37 @@
+<Window x:Class="Test.AddServices"
+        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:Test"
+        mc:Ignorable="d"
+        Title="AddServices" Height="450" Width="400" WindowStyle="None" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" Icon="Images/beauty_logo.ico">
+    <Grid>
+        <StackPanel HorizontalAlignment="Left" Height="277" Margin="56,69,0,0" VerticalAlignment="Top" Width="289" Background="#FFE1E4FF"/>
+
+        <Label Content="Добавление услуги" HorizontalAlignment="Center" VerticalAlignment="Center" Background="{x:Null}" Foreground="#FFFF4A6D" FontFamily="Tahoma" FontSize="34" Margin="42,10,46,386" Width="312" Height="54"/>
+        <TextBox HorizontalAlignment="Center" Height="26" TextWrapping="Wrap" VerticalAlignment="Center" Width="234" Foreground="Black" BorderBrush="#FFFF4A6D" FontFamily="Tahoma" FontSize="18" VerticalContentAlignment="Bottom" Margin="84,118,82,306"/>
+        <Label Content="Название" HorizontalAlignment="Center" VerticalAlignment="Center" Background="{x:Null}" Foreground="#FFFF4A6D" FontFamily="Tahoma" FontSize="18" Width="110" Margin="84,84,206,332"/>
+        <Label Content="Тип" HorizontalAlignment="Center" VerticalAlignment="Center" Background="{x:Null}" Foreground="#FFFF4A6D" FontFamily="Tahoma" FontSize="18" Width="110" Margin="84,168,206,250"/>
+        <Label Content="Клиент (необязательно)" HorizontalAlignment="Center" VerticalAlignment="Center" Background="{x:Null}" Foreground="#FFFF4A6D" FontFamily="Tahoma" FontSize="18" Width="234" Margin="84,252,82,166"/>
+        <Button Content="Добавить" HorizontalAlignment="Center" VerticalAlignment="Center" Width="113" Height="30" Margin="143,368,144,52" BorderBrush="White" Background="#FFFF4A6D" Foreground="White" FontFamily="Tahoma" FontSize="18"/>
+        <ComboBox HorizontalAlignment="Left" Margin="84,284,0,0" VerticalAlignment="Top" Width="234" BorderBrush="White" Height="26">
+            <ComboBox.Background>
+                <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
+                    <GradientStop Color="#FFF0F0F0" Offset="0"/>
+                    <GradientStop Color="#FFE1E4FF" Offset="1"/>
+                </LinearGradientBrush>
+            </ComboBox.Background>
+        </ComboBox>
+        <ComboBox HorizontalAlignment="Left" Margin="84,200,0,0" VerticalAlignment="Top" Width="234" BorderBrush="White" Height="26">
+            <ComboBox.Background>
+                <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
+                    <GradientStop Color="#FFF0F0F0" Offset="0"/>
+                    <GradientStop Color="#FFE1E4FF" Offset="1"/>
+                </LinearGradientBrush>
+            </ComboBox.Background>
+        </ComboBox>
+        <Button Content="Назад" HorizontalAlignment="Center" VerticalAlignment="Center" Width="96" Height="26" Margin="151,403,153,21" BorderBrush="#FFFF4A6D" Background="White" Foreground="#FFFF4A6D" FontFamily="Tahoma" FontSize="16"/>
+
+    </Grid>
+</Window>

+ 27 - 0
AddServices.xaml.cs

@@ -0,0 +1,27 @@
+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.Shapes;
+
+namespace Test
+{
+    /// <summary>
+    /// Логика взаимодействия для AddServices.xaml
+    /// </summary>
+    public partial class AddServices : Window
+    {
+        public AddServices()
+        {
+            InitializeComponent();
+        }
+    }
+}

+ 6 - 0
App.config

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+    <startup> 
+        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
+    </startup>
+</configuration>

+ 9 - 0
App.xaml

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

+ 25 - 0
Test.sln

@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.29102.190
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test", "Test\Test.csproj", "{BE757254-49CA-4688-96CC-AA59FDC085EA}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Any CPU = Debug|Any CPU
+		Release|Any CPU = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{BE757254-49CA-4688-96CC-AA59FDC085EA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{BE757254-49CA-4688-96CC-AA59FDC085EA}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{BE757254-49CA-4688-96CC-AA59FDC085EA}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{BE757254-49CA-4688-96CC-AA59FDC085EA}.Release|Any CPU.Build.0 = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+	GlobalSection(ExtensibilityGlobals) = postSolution
+		SolutionGuid = {D99BD330-4CB7-40B0-95B3-857309245CEB}
+	EndGlobalSection
+EndGlobal