using NBAManagment.Entities;
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.Markup;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Media.Media3D;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace NBAManagment
{
    /// <summary>
    /// Логика взаимодействия для MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();

            //var context = new PracticeNBAEntities();
            //for (int i = 1; i <= 18; i++)
            //{
            //    byte[] imageBytes = File.ReadAllBytes(@"C:\Users\voxhy\OneDrive\Рабочий стол\NBATeam\Material\data\Pictures\" + i + ".jpg");

            //    var image = new NBAManagment.Entities.Image
            //    {
            //        Image1 = imageBytes,
            //        CreateTime = DateTime.Now,
                    
            //    };
            //    context.Image.Add(image);
            //}
            //context.SaveChanges();
            


            Console.ReadLine();

        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            VisitorMenu visitorMenu = new VisitorMenu();
            visitorMenu.Show();
            this.Close();
        }


    }
}
