Фельдбейн Артур Станиславович 3 rokov pred
rodič
commit
fe53253b8c

+ 8 - 2
Kafe/Kafe/MainWindow.xaml

@@ -5,8 +5,14 @@
         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
         xmlns:local="clr-namespace:Kafe"
         mc:Ignorable="d"
-        Title="MainWindow" Height="450" Width="800">
+        Title="Авторизация" Height="500" Width="300" ResizeMode="NoResize">
     <Grid>
-        
+        <StackPanel Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100">
+            <TextBlock Text="Логин" Margin="5"/>
+            <TextBox x:Name="LoginTB" Margin="5"/>
+            <TextBlock Text="Пароль" Margin="5"/>
+            <PasswordBox x:Name="PasswordTB" Margin="5"/>
+            <Button x:Name="ConfirmBtn" Content="Войти" Click="ConfirmBtn_Click" Height="23" Margin="5"/>
+        </StackPanel>
     </Grid>
 </Window>

+ 6 - 0
Kafe/Kafe/MainWindow.xaml.cs

@@ -24,5 +24,11 @@ namespace Kafe
         {
             InitializeComponent();
         }
+
+        private void ConfirmBtn_Click(object sender, RoutedEventArgs e)
+        {
+            var login = LoginTB.Text.Trim();
+            var password = PasswordTB.Password.Trim();
+        }
     }
 }

+ 26 - 16
Kafe/Kafe/obj/Debug/MainWindow.g.i.cs

@@ -1,4 +1,5 @@
-#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "F923F240A337654550D5BAF69EF696F6493DA990C58B4CBAB3FB2B7A3BCD7C87"
+// Updated by XamlIntelliSenseFileGenerator 26.03.2022 17:26:51
+#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "F923F240A337654550D5BAF69EF696F6493DA990C58B4CBAB3FB2B7A3BCD7C87"
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан программой.
@@ -32,44 +33,53 @@ using System.Windows.Shapes;
 using System.Windows.Shell;
 
 
-namespace Kafe {
-    
-    
+namespace Kafe
+{
+
+
     /// <summary>
     /// MainWindow
     /// </summary>
-    public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
-        
+    public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector
+    {
+
         private bool _contentLoaded;
-        
+
         /// <summary>
         /// InitializeComponent
         /// </summary>
         [System.Diagnostics.DebuggerNonUserCodeAttribute()]
         [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
-        public void InitializeComponent() {
-            if (_contentLoaded) {
+        public void InitializeComponent()
+        {
+            if (_contentLoaded)
+            {
                 return;
             }
             _contentLoaded = true;
             System.Uri resourceLocater = new System.Uri("/Kafe;component/mainwindow.xaml", System.UriKind.Relative);
-            
-            #line 1 "..\..\MainWindow.xaml"
+
+#line 1 "..\..\MainWindow.xaml"
             System.Windows.Application.LoadComponent(this, resourceLocater);
-            
-            #line default
-            #line hidden
+
+#line default
+#line hidden
         }
-        
+
         [System.Diagnostics.DebuggerNonUserCodeAttribute()]
         [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
         [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
-        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
+        {
             this._contentLoaded = true;
         }
+
+        internal System.Windows.Controls.TextBox LoginTB;
+        internal System.Windows.Controls.PasswordBox PasswordTB;
+        internal System.Windows.Controls.Button ConfirmBtn;
     }
 }