PIbd-42_Kashin_M.I_CPO_Cour.../EmployeeManagmentView/PhysicalPerson/ViewPhysicalPersonsWindow.xaml.cs

23 lines
654 B
C#

using EmployeeManagmentContracts.BusinessLogicContracts;
using System.Windows;
namespace EmployeeManagmentView.PhysicalPerson
{
public partial class ViewPhysicalPersonsWindow : Window
{
private readonly IPhisicalPersonLogic _phisicalPersonLogic;
public ViewPhysicalPersonsWindow(IPhisicalPersonLogic phisicalPersonLogic)
{
_phisicalPersonLogic = phisicalPersonLogic;
InitializeComponent();
LoadPhysicalPersons();
}
private void LoadPhysicalPersons()
{
PhysicalPersonsDataGrid.ItemsSource = _phisicalPersonLogic.GetFullList();
}
}
}