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(); } } }