diff --git a/Lunapark/Lunapark/MainWindow.xaml b/Lunapark/Lunapark/MainWindow.xaml
index 75f71c6..2785f7e 100644
--- a/Lunapark/Lunapark/MainWindow.xaml
+++ b/Lunapark/Lunapark/MainWindow.xaml
@@ -24,6 +24,35 @@
+
+
@@ -40,13 +69,19 @@
+
+
+
+
@@ -97,10 +134,10 @@
-
-
-
-
+
+
+
+
diff --git a/Lunapark/Lunapark/MainWindow.xaml.cs b/Lunapark/Lunapark/MainWindow.xaml.cs
index 1d1e75c..224a863 100644
--- a/Lunapark/Lunapark/MainWindow.xaml.cs
+++ b/Lunapark/Lunapark/MainWindow.xaml.cs
@@ -11,5 +11,13 @@ namespace Lunapark
{
InitializeComponent();
}
+ private void ButtonBuyTicketsClick(object sender, RoutedEventArgs e)
+ {
+ WindowBuyTickets windowBuyTickets = new WindowBuyTickets();
+ windowBuyTickets.AttractionName.Content = $"аттаркцион \"{ComboBoxAttractions.Text}\"" ;
+ windowBuyTickets.TicketsCount.Content = $"в количестве {TextBoxTicketCount.Text} штук";
+ windowBuyTickets.LabelDate.Content = $"на {DatePicker.Text}";
+ windowBuyTickets.Show();
+ }
}
}
diff --git a/Lunapark/Lunapark/WindowBuyTickets.xaml b/Lunapark/Lunapark/WindowBuyTickets.xaml
new file mode 100644
index 0000000..487d203
--- /dev/null
+++ b/Lunapark/Lunapark/WindowBuyTickets.xaml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
diff --git a/Lunapark/Lunapark/WindowBuyTickets.xaml.cs b/Lunapark/Lunapark/WindowBuyTickets.xaml.cs
new file mode 100644
index 0000000..b8d156c
--- /dev/null
+++ b/Lunapark/Lunapark/WindowBuyTickets.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 Lunapark
+{
+ ///
+ /// Логика взаимодействия для WindowBuyTickets.xaml
+ ///
+ public partial class WindowBuyTickets : Window
+ {
+ public WindowBuyTickets()
+ {
+ InitializeComponent();
+ }
+ }
+}