39 lines
1.2 KiB
C#
39 lines
1.2 KiB
C#
using EmployeeManagmentContracts.BusinessLogicContracts;
|
|
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 EmployeeManagmentView.PhysicalPerson
|
|
{
|
|
/// <summary>
|
|
/// Логика взаимодействия для PhysicalPersonManagementWindow.xaml
|
|
/// </summary>
|
|
public partial class PhysicalPersonManagementWindow : Window
|
|
{
|
|
private readonly IPhisicalPersonLogic _phisicalPersonLogic;
|
|
|
|
// Constructor with Dependency Injection
|
|
public PhysicalPersonManagementWindow(IPhisicalPersonLogic phisicalPersonLogic)
|
|
{
|
|
_phisicalPersonLogic = phisicalPersonLogic;
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void OpenAddPhysicalPersonWindow(object sender, RoutedEventArgs e)
|
|
{
|
|
var physicalPersonWindow = new AddPhysicalPersonWindow(_phisicalPersonLogic);
|
|
physicalPersonWindow.Show();
|
|
}
|
|
}
|
|
}
|