Browse Source

окно регистрации и начало создания меню

Kuzmenco 1 year ago
parent
commit
bd58beb1f9
5 changed files with 60 additions and 3 deletions
  1. 2 1
      MainWindow.xaml
  2. 7 0
      Prokatavto03.csproj
  3. 11 2
      Window1.xaml
  4. 13 0
      Window2.xaml
  5. 27 0
      Window2.xaml.cs

+ 2 - 1
MainWindow.xaml

@@ -11,10 +11,11 @@
             <RowDefinition Height="57*"/>
         </Grid.RowDefinitions>
         <TextBox HorizontalAlignment="Left" Height="25" Margin="77,109,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="143" TextChanged="TextBox_TextChanged"/>
-        <Button Content="Вход" HorizontalAlignment="Left" Margin="46,213,0,0" VerticalAlignment="Top" Width="90" RenderTransformOrigin="-0.927,-1.391" Height="22"/>
+        <Button Content="Войти" HorizontalAlignment="Left" Margin="46,213,0,0" VerticalAlignment="Top" Width="90" RenderTransformOrigin="-0.927,-1.391" Height="22"/>
         <TextBox HorizontalAlignment="Left" Height="24" Margin="77,162,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="143"/>
         <TextBlock HorizontalAlignment="Left" Margin="77,83,0,0" TextWrapping="Wrap" Text="Логин" VerticalAlignment="Top" Width="59" Height="17"/>
         <TextBlock HorizontalAlignment="Left" Margin="77,139,0,0" TextWrapping="Wrap" Text="Пароль" VerticalAlignment="Top" Width="59" Height="17"/>
         <Button Content="Регистрация" HorizontalAlignment="Left" Margin="160,213,0,0" VerticalAlignment="Top" Width="90" Height="22"/>
+        <TextBlock HorizontalAlignment="Left" Margin="125,61,0,0" TextWrapping="Wrap" Text="Вход" VerticalAlignment="Top" Height="38" Width="69" FontSize="20"/>
     </Grid>
 </Window>

+ 7 - 0
Prokatavto03.csproj

@@ -58,6 +58,9 @@
     <Compile Include="Window1.xaml.cs">
       <DependentUpon>Window1.xaml</DependentUpon>
     </Compile>
+    <Compile Include="Window2.xaml.cs">
+      <DependentUpon>Window2.xaml</DependentUpon>
+    </Compile>
     <Page Include="MainWindow.xaml">
       <Generator>MSBuild:Compile</Generator>
       <SubType>Designer</SubType>
@@ -74,6 +77,10 @@
       <SubType>Designer</SubType>
       <Generator>MSBuild:Compile</Generator>
     </Page>
+    <Page Include="Window2.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
   </ItemGroup>
   <ItemGroup>
     <Compile Include="Properties\AssemblyInfo.cs">

+ 11 - 2
Window1.xaml

@@ -5,8 +5,17 @@
         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
         xmlns:local="clr-namespace:Prokatavto03"
         mc:Ignorable="d"
-        Title="Window1" Height="450" Width="800">
+        Title="Window1" Height="370.393" Width="302.457" Background="#FF78909C">
     <Grid>
-        
+        <TextBox HorizontalAlignment="Left" Height="22" Margin="77,84,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="143" TextChanged="TextBox_TextChanged"/>
+        <Button Content="Вход" HorizontalAlignment="Left" Margin="46,213,0,0" VerticalAlignment="Top" Width="90" RenderTransformOrigin="-0.927,-1.391" Height="22"/>
+        <TextBox HorizontalAlignment="Left" Height="21" Margin="77,131,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="143"/>
+        <TextBlock HorizontalAlignment="Left" Margin="77,61,0,0" TextWrapping="Wrap" Text="Логин" VerticalAlignment="Top" Width="59" Height="15"/>
+        <TextBlock HorizontalAlignment="Left" Margin="77,111,0,0" TextWrapping="Wrap" Text="Пароль" VerticalAlignment="Top" Width="59" Height="15"/>
+        <Button Content="" HorizontalAlignment="Left" Margin="160,213,0,0" VerticalAlignment="Top" Width="90" Height="22"/>
+        <TextBlock HorizontalAlignment="Left" Margin="77,152,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="96" Height="18" RenderTransformOrigin="0.5,0.5"><Run Text="Пароль"/><Run Text=" повтор"/></TextBlock>
+        <TextBox HorizontalAlignment="Left" Height="23" Margin="77,175,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="143"/>
+        <TextBlock HorizontalAlignment="Left" Margin="97,39,0,0" TextWrapping="Wrap" Text="Регистрация" VerticalAlignment="Top" Height="38" Width="123" FontSize="20"/>
+
     </Grid>
 </Window>

+ 13 - 0
Window2.xaml

@@ -0,0 +1,13 @@
+<Window x:Class="Prokatavto03.Window2"
+        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:Prokatavto03"
+        mc:Ignorable="d"
+        Title="Window2" Height="450" Width="800"  Background="#FF78909C">
+    <Grid>
+        <TextBlock HorizontalAlignment="Left" Margin="27,21,0,0" TextWrapping="Wrap" Text="Меню" VerticalAlignment="Top" Height="38" Width="123" FontSize="20" FontWeight="Bold"/>
+
+    </Grid>
+</Window>

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