1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- using System;
- using System.Collections.Generic;
- using System.IO;
- 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.Navigation;
- using System.Windows.Shapes;
- namespace bobrovTounApp
- {
- /// <summary>
- /// Логика взаимодействия для MainWindow.xaml
- /// </summary>
- public partial class MainWindow : Window
- {
- public MainWindow(object MainFrame)
- {
- InitializeComponent();
-
- }
- private void Button_Click(object sender, RoutedEventArgs e)
- {
-
- }
- private void MainFrame_Navigated(object sender, NavigationEventArgs e)
- {
- }
- private void ImportTours()
- {
- var fileData = File.ReadAllLines(@"C:\Users\user2\Desktop\Новая папка (2)\Tours2.txt");
- var images = Directory.GetFiles(@"C:\Users\user2\Desktop\Новая папка (3)");
- foreach (var line in fileData)
- {
- var data = line.Split('\t');
- var tempTour = new Tour
- {
- Name = data[0].Replace("\"", ""),
- TicketCount = int.Parse(data[2]),
- Price = decimal.Parse(data[3]),
- isActual = (data[4] == "0") ? false : true
- };
- foreach (var tourType in data[5].Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries))
- {
- }
-
-
-
-
-
-
-
-
-
-
- }
- }
- private string ReadAllBytes(string v)
- {
- throw new NotImplementedException();
- }
- }
- }
|