123456789101112131415161718192021222324252627282930313233343536373839404142 |
- 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>
- /// Логика взаимодействия для EditEmploeeWindow.xaml
- /// </summary>
- public partial class EditEmploeeWindow : Window
- {
- private int id;
- public EditEmploeeWindow(int id)
- {
- InitializeComponent();
- this.id = id;
- var emploee = Helper.GetContext().Emploee.Where(x => x.ID == id).FirstOrDefault();
- EmploeeTb.Text = $"{emploee.Surname} {emploee.Name[0]}.{emploee.Middlename[0]}.";
- StatusCb.ItemsSource = Helper.GetContext().WorkStatus.ToList();
- StatusCb.SelectedItem = emploee.WorkStatus;
- }
- private void ConfirmBtn_Click(object sender, RoutedEventArgs e)
- {
- }
- }
- }
|