2024-07-30 14:49:46 +02:00
|
|
|
|
using BeWo.ViewModel;
|
2024-08-05 13:59:14 +02:00
|
|
|
|
using BS.Shared;
|
2024-09-02 11:03:16 +02:00
|
|
|
|
using BS.Shared.DataContracts;
|
2024-08-20 13:04:53 +02:00
|
|
|
|
using BS.Shared.DataContracts.Wohnhilfe;
|
2024-07-30 14:49:46 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using System.Windows;
|
|
|
|
|
|
using System.Windows.Controls;
|
|
|
|
|
|
using System.Windows.Data;
|
|
|
|
|
|
using System.Windows.Documents;
|
|
|
|
|
|
using System.Windows.Input;
|
|
|
|
|
|
using System.Windows.Media;
|
|
|
|
|
|
using System.Windows.Media.Imaging;
|
|
|
|
|
|
using System.Windows.Navigation;
|
|
|
|
|
|
using System.Windows.Shapes;
|
|
|
|
|
|
|
|
|
|
|
|
namespace BeWo.View.Detail
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Interaktionslogik für CustomerFalldatenView.xaml
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public partial class CustomerFalldatenView : UserControl
|
|
|
|
|
|
{
|
2024-08-05 13:11:25 +02:00
|
|
|
|
private CustomerFalldatenVM _ViewModel;
|
2024-07-30 14:49:46 +02:00
|
|
|
|
|
2024-08-05 13:11:25 +02:00
|
|
|
|
public CustomerFalldatenVM ViewModel
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return _ViewModel; }
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
_ViewModel = value;
|
|
|
|
|
|
DataContext = value;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public CustomerFalldatenView(CustomerFalldatenVM vM)
|
2024-07-30 14:49:46 +02:00
|
|
|
|
{
|
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
|
|
|
|
|
|
ViewModel = vM;
|
2024-08-05 13:59:14 +02:00
|
|
|
|
|
2024-08-20 13:04:53 +02:00
|
|
|
|
combobox_bearbeitungsstatus.ItemsSource = Enum.GetValues(typeof(FalldatenBearbeitungsstatus));
|
2024-08-06 13:34:23 +02:00
|
|
|
|
|
|
|
|
|
|
foreach (var label in FindVisualChildren<Label>(this))
|
|
|
|
|
|
{
|
|
|
|
|
|
label.IsEnabled = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public IEnumerable<T> FindVisualChildren<T>(DependencyObject depObj) where T : DependencyObject
|
|
|
|
|
|
{
|
|
|
|
|
|
if (depObj != null)
|
|
|
|
|
|
{
|
|
|
|
|
|
int depObjCount = VisualTreeHelper.GetChildrenCount(depObj);
|
|
|
|
|
|
for (int i = 0; i < depObjCount; i++)
|
|
|
|
|
|
{
|
|
|
|
|
|
DependencyObject child = VisualTreeHelper.GetChild(depObj, i);
|
|
|
|
|
|
if (child != null && child is T)
|
|
|
|
|
|
{
|
|
|
|
|
|
yield return (T)child;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (child is GroupBox)
|
|
|
|
|
|
{
|
|
|
|
|
|
GroupBox gb = child as GroupBox;
|
|
|
|
|
|
Object gpchild = gb.Content;
|
|
|
|
|
|
if (gpchild is T)
|
|
|
|
|
|
{
|
|
|
|
|
|
yield return (T)child;
|
|
|
|
|
|
child = gpchild as T;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
foreach (T childOfChild in FindVisualChildren<T>(child))
|
|
|
|
|
|
{
|
|
|
|
|
|
yield return childOfChild;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-07-30 14:49:46 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|