コード例 #1
0
        // Добавление нового декретного отпуска
        private void AddNewMaternityLeave_Click(object sender, RoutedEventArgs e)
        {
            var vacationWindow = new AddNewMaternityLeave(_currentEmployeeId);

            vacationWindow.ShowDialog();

            LoadVacationsInfo();
        }
コード例 #2
0
        // Редактирование декретного отпуска
        private void EditMaternityLeave_Click(object sender, RoutedEventArgs e)
        {
            int currentId      = (MaternityLeaveDataGrid.SelectedItem as MaternityLeaveData).Id;
            var vacationWindow = new AddNewMaternityLeave(_currentEmployeeId, currentId);

            vacationWindow.ShowDialog();

            LoadVacationsInfo();
        }