PIbd-42_Kashin_M.I_CPO_Cour.../EmployeeManagmentView/MainWindow.xaml.cs

42 lines
1.4 KiB
C#
Raw Normal View History

using EmployeeManagmentBusinessLogic.BusinessLogic;
using EmployeeManagmentContracts.BusinessLogicContracts;
using EmployeeManagmentContracts.ViewModels;
using System.Windows;
namespace EmployeeManagmentView
{
public partial class MainWindow : Window
{
private readonly IEmployeeLogic _employeeLogic;
// Constructor with Dependency Injection
public MainWindow(IEmployeeLogic employeeLogic)
{
_employeeLogic = employeeLogic;
InitializeComponent();
}
private void ViewEmployees_Click(object sender, RoutedEventArgs e)
{
// Логика для открытия окна просмотра сотрудников
var employeesWindow = new EmployeesWindow();
employeesWindow.Show();
}
private void ManageSalaries_Click(object sender, RoutedEventArgs e)
{
// Логика для открытия окна управления зарплатами
var salariesWindow = new SalariesWindow();
salariesWindow.Show();
}
private void ManageVacations_Click(object sender, RoutedEventArgs e)
{
// Логика для открытия окна управления отпусками
var vacationsWindow = new VacationsWindow();
vacationsWindow.Show();
}
}
}