private void EmployeesListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if(EmployeesListBox.SelectedItem != null)
     {
         employeeDetails = new EmployeeDetails(employeeService.ClientCredentials, (Employee)EmployeesListBox.SelectedItem);
         employeeDetails.RefreshAll += EmployeeDetails_RefreshAll;
         this.EmployeeDetailsContentControl.Content = employeeDetails;
     }
 }
 private void EmployeeDetails_RefreshAll(object sender, EventArgs e)
 {
     FillData();
     EmployeeDetailsContentControl.Content = null;
     employeeDetails = null;
 }
 private void AddButton_Click(object sender, RoutedEventArgs e)
 {
     employeeDetails = new EmployeeDetails(employeeService.ClientCredentials);
     employeeDetails.RefreshAll += EmployeeDetails_RefreshAll;
     this.EmployeeDetailsContentControl.Content = employeeDetails;
 }