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 WpfApp1.Windows
{
    /// <summary>
    /// Логика взаимодействия для EmploeeWindow.xaml
    /// </summary>
    public partial class EmploeeWindow : Window
    {
        public EmploeeWindow()
        {
            InitializeComponent();
            emploeeList.ItemsSource = Helper.GetContext().Emploee.ToList();
        }

        private void emploeeList_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {

        }

        private void EditBtn_Click(object sender, RoutedEventArgs e)
        {
            if (emploeeList.SelectedItem != null)
            {
                (new EditEmploeeWindow((emploeeList.SelectedItem as Emploee).ID)).ShowDialog();

            }
        }

        private void RegistrationBtn_Click(object sender, RoutedEventArgs e)
        {

        }
    }
}
