private void loadClientFromDatabaseButton_Click(object sender, RoutedEventArgs e) { if (clientsList.SelectedItem is ClientModel selectedClient) { viewModel.LoadClient(selectedClient); } }