Jelajahi Sumber

КРАСИВО

mr.solder5 5 tahun lalu
induk
melakukan
c037fd57f8

+ 15 - 16
CopyCenter/AuthorizationWindow.xaml

@@ -5,22 +5,21 @@
         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
         xmlns:local="clr-namespace:CopyCenter"
         mc:Ignorable="d"
-        Title="Авторизация" Height="150" Width="300" WindowStartupLocation="CenterScreen" FontFamily="Century Gothic">
+        Title="" Height="300" Width="450" WindowStartupLocation="CenterScreen" FontFamily="Century Gothic">
     <Grid>
-        <Grid.RowDefinitions>
-            <RowDefinition/>
-            <RowDefinition/>
-            <RowDefinition/>
-        </Grid.RowDefinitions>
-        <Grid.ColumnDefinitions>
-            <ColumnDefinition/>
-            <ColumnDefinition/>
-        </Grid.ColumnDefinitions>
-        <TextBlock Text="Логин"/>
-        <TextBlock Text="Пароль" Grid.Row="1"/>
-        <TextBox Name="login" Grid.Column="1" Grid.Row="0"/>
-        <PasswordBox Name="password" Grid.Column="1"  Grid.Row="1"/>
-        <Button Grid.Row="2" Grid.Column="0" Content="Войти" Click="AuthorizationClick" FontFamily="Comic Sans MS"/>
-        <Button Grid.Row="2" Grid.Column="1" Content="Зарегистрироваться" Click="Registration_Click" FontFamily="Comic Sans MS" Margin="6,5,5,5"/>
+
+        <TextBlock Text="Логин" Margin="10,82,387,155"/>
+        <TextBlock Text="Пароль" Margin="10,130,378,108"/>
+        <TextBlock Text="АВТОРИЗАЦИЯ" Margin="179,10,164,229"/>
+        <TextBox Name="login" Grid.Row="0" Margin="109,72,39,164"/>
+        <PasswordBox Name="password" Margin="109,120,39,117"/>
+        <Button Grid.Column="0" Content="Вход" Click="AuthorizationClick" FontFamily="Century Gothic" Height="Auto" Margin="311,157,66,78" Width="Auto" Background="#FF138DE2" FontSize="14"/>
+        <Button Content="Зарегистрироваться" Click="Registration_Click" FontFamily="Century Gothic" Height="Auto" Margin="119,157,158,78" Width="Auto" Background="#FF138DE2" FontSize="14"/>
+        <StackPanel>
+            <Image Margin="64,120,346,117" Source="key[1].png" Stretch="Fill"/>
+            <Image Margin="64,-196,346,165" Source="1536306136_user[1].png" Stretch="Fill" />
+            <Image Margin="278,-270,124,229" Source="w256h2561384699897signup[1].png" Stretch="Fill" RenderTransformOrigin="7.7,0.75"/>
+         </StackPanel>
+
     </Grid>
 </Window>

+ 0 - 7
CopyCenter/CopyCenter.csproj

@@ -128,9 +128,6 @@
     <Compile Include="User.cs">
       <DependentUpon>DataBase.tt</DependentUpon>
     </Compile>
-    <Compile Include="Window1.xaml.cs">
-      <DependentUpon>Window1.xaml</DependentUpon>
-    </Compile>
     <Page Include="AuthorizationWindow.xaml">
       <SubType>Designer</SubType>
       <Generator>MSBuild:Compile</Generator>
@@ -163,10 +160,6 @@
       <SubType>Designer</SubType>
       <Generator>MSBuild:Compile</Generator>
     </Page>
-    <Page Include="Window1.xaml">
-      <SubType>Designer</SubType>
-      <Generator>MSBuild:Compile</Generator>
-    </Page>
   </ItemGroup>
   <ItemGroup>
     <Compile Include="Properties\AssemblyInfo.cs">

+ 0 - 19
CopyCenter/Style.xaml

@@ -2,25 +2,6 @@
                     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                     xmlns:local="clr-namespace:CopyCenter">
 
-    <Style TargetType="Button">
-        <Setter Property="Margin" Value="5"/>
-    </Style>
-    <Style TargetType="TextBox">
-        <Setter Property="HorizontalContentAlignment" Value="Center"/>
-        <Setter Property="VerticalContentAlignment" Value="Center"/>
-        <Setter Property="Margin" Value="5"/>
-    </Style>
-    <Style TargetType="PasswordBox">
-        <Setter Property="HorizontalContentAlignment" Value="Center"/>
-        <Setter Property="VerticalContentAlignment" Value="Center"/>
-        <Setter Property="Margin" Value="5"/>
-    </Style>
-    <Style TargetType="TextBlock">
-        <Setter Property="HorizontalAlignment" Value="Center"/>
-        <Setter Property="VerticalAlignment" Value="Center"/>
-        <Setter Property="Margin" Value="5"/>
-    </Style>
-
     <Style TargetType="{x:Type Button}" >
         <Setter Property="Template">
             <Setter.Value>

+ 0 - 23
CopyCenter/Window1.xaml

@@ -1,23 +0,0 @@
-<Window x:Class="CopyCenter.AuthorizationWindow"
-        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:CopyCenter"
-        mc:Ignorable="d"
-        Title="" Height="300" Width="450" WindowStartupLocation="CenterScreen" FontFamily="Century Gothic">
-    <Grid>
-
-        <TextBlock Text="Логин" Margin="10,82,397,172"/>
-        <TextBlock Text="Пароль" Margin="10,130,387,124"/>
-        <TextBlock Text="АВТОРИЗАЦИЯ" Margin="179,10,175,244"/>
-        <TextBox Name="login" Grid.Row="0" Margin="109,72,39,164"/>
-        <PasswordBox Name="password" Margin="109,120,39,117"/>
-        <Button Grid.Column="0" Content="Вход" Click="AuthorizationClick" FontFamily="Century Gothic" Height="Auto" Margin="338,162,39,82" Width="Auto" Background="#FF138DE2" FontSize="14"/>
-        <Button Content="Зарегистрироваться" Click="Registration_Click" FontFamily="Century Gothic" Height="Auto" Margin="179,162,118,82" Width="Auto" Background="#FF138DE2" FontSize="14"/>
-        <Image Margin="64,120,346,117" Source="key[1].png" Stretch="Fill"/>
-        <Image Margin="64,72,346,165" Source="1536306136_user[1].png" Stretch="Fill"/>
-        <Image Margin="278,0,124,229" Source="w256h2561384699897signup[1].png" Stretch="Fill" RenderTransformOrigin="7.7,0.75"/>
-
-    </Grid>
-</Window>

+ 0 - 27
CopyCenter/Window1.xaml.cs

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