12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Net.Http;
- 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.Navigation;
- using System.Windows.Shapes;
- namespace WindowedMyApp
- {
- /// <summary>
- /// Логика взаимодействия для StartPage.xaml
- /// </summary>
- public partial class StartPage : Page
- {
- public StartPage()
- {
- InitializeComponent();
- using (ModelClass db = new ModelClass())
- {
- List<Tours> tour = db.Tours.ToList();
- nameTour1.Content = tour[0].Name_Tour;
- dateStartTour1.Content = tour[0].Date_Start;
- dateFinishTour1.Content = tour[0].Date_Finish;
- costTour1.Content = tour[0].Cost_Tour;
- nameTour2.Content = tour[1].Name_Tour;
- dateStartTour2.Content = tour[1].Date_Start;
- dateFinishTour2.Content = tour[1].Date_Finish;
- costTour2.Content = tour[1].Cost_Tour;
- nameTour3.Content = tour[2].Name_Tour;
- dateStartTour3.Content = tour[2].Date_Start;
- dateFinishTour3.Content = tour[2].Date_Finish;
- costTour3.Content = tour[2].Cost_Tour;
- }
- }
- }
- }
|