From b3f98cc173a7751b98a65b93251d7993becdabe5 Mon Sep 17 00:00:00 2001
From: IlyasValiulov <148232695+IlyasValiulov@users.noreply.github.com>
Date: Fri, 4 Oct 2024 14:33:22 +0400
Subject: [PATCH] =?UTF-8?q?=D0=9B=D0=B0=D0=B1=D0=B0=D1=80=D1=82=D0=BE?=
=?UTF-8?q?=D1=80=D0=BD=D0=B0=D1=8F=204=20=D0=98=D0=B7=D0=BC=D0=B5=D0=BD?=
=?UTF-8?q?=D0=B5=D0=BD=D0=BD=D0=B0=D1=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
WPF/MainWindow.xaml | 24 +++++++++++++++++-------
WPF/MainWindow.xaml.cs | 34 ++++++++++++++++++++++++++++++++++
2 files changed, 51 insertions(+), 7 deletions(-)
diff --git a/WPF/MainWindow.xaml b/WPF/MainWindow.xaml
index 2e1d6c7..0081c45 100644
--- a/WPF/MainWindow.xaml
+++ b/WPF/MainWindow.xaml
@@ -8,11 +8,21 @@
Title="MainWindow" Height="500" Width="800" MinHeight="450" MinWidth="600" Background="LightYellow">
+
+
+
+
-
+
@@ -44,8 +54,8 @@
-
-
+
+
@@ -55,7 +65,7 @@
Путь установки: C:\Users\Ilyas\AppData\Local\hgv
- Требуемого места: 148Т
+ Требуемого места: 148Т
diff --git a/WPF/MainWindow.xaml.cs b/WPF/MainWindow.xaml.cs
index 33c4f07..0bf2805 100644
--- a/WPF/MainWindow.xaml.cs
+++ b/WPF/MainWindow.xaml.cs
@@ -16,9 +16,43 @@ namespace WPF
///
public partial class MainWindow : Window
{
+ public ICommand ShowMessageBox { get; set; }
public MainWindow()
{
InitializeComponent();
+ ShowMessageBox = new RelayCommand(LoginShowBox);
+ DataContext = this;
+ }
+ private void LoginShowBox(object parameter)
+ {
+ MessageBox.Show("Вход");
+ }
+ }
+ public class RelayCommand : ICommand
+ {
+ private readonly Action