Interaction logic for Dialog1.xaml
Наследование: System.Windows.Window
        public void ShowHideDetails(object sender, RoutedEventArgs e)
        {
            var employeeId = ((Button)sender).CommandParameter;
            if (employeeId != null)
            {
                var details = new EmployeeDetails();
                details.EmployeeId = (int)employeeId;

                details.ShowDialog();
            }
        }