diff --git a/BeWo/BeWoApp.xaml.cs b/BeWo/BeWoApp.xaml.cs index b04310a29..1afe3a89e 100644 --- a/BeWo/BeWoApp.xaml.cs +++ b/BeWo/BeWoApp.xaml.cs @@ -457,6 +457,11 @@ namespace BeWo { AppSettings.ShowKlientenBetreuungszeiten = true; } + val = UserSettingsUtils.GetSettingValue(_Mandator.Settings, SettingsKeys.FilterGroupServiceCategories); + if (val != null && val.Equals("0")) + { + AppSettings.FilterGroupServiceCategories = false; + } val = UserSettingsUtils.GetSettingValue(_Mandator.Settings, SettingsKeys.ShowInfoButtonInCalender); if (val != null && val.Equals("1")) { diff --git a/BeWo/Core/Config/AppSettings.cs b/BeWo/Core/Config/AppSettings.cs index aeb8c55a6..384fd8106 100644 --- a/BeWo/Core/Config/AppSettings.cs +++ b/BeWo/Core/Config/AppSettings.cs @@ -26,7 +26,8 @@ namespace BeWo.Core.Config private bool _showExpiredSupportConcepts = true; private bool _showServiceRecordGridControl; - + private bool _filterGroupServiceCategories = true; + private WindowStateType mWindowStateType = WindowStateType.Default; private ServiceRecordTimeInterval mLastSelectedServiceRecordTimeInterval = ServiceRecordTimeInterval.All; @@ -462,5 +463,12 @@ namespace BeWo.Core.Config } public bool ShowKlientenBetreuungszeiten { get; set; } + + public bool FilterGroupServiceCategories + { + get { return _filterGroupServiceCategories; } + + set { _filterGroupServiceCategories = value; } + } } } \ No newline at end of file diff --git a/BeWo/View/Controls/MultiSupportConceptSelectionControl.xaml.cs b/BeWo/View/Controls/MultiSupportConceptSelectionControl.xaml.cs index d6b13e9e7..7cb7c01f1 100644 --- a/BeWo/View/Controls/MultiSupportConceptSelectionControl.xaml.cs +++ b/BeWo/View/Controls/MultiSupportConceptSelectionControl.xaml.cs @@ -62,6 +62,8 @@ namespace BeWo.View.Controls public event EventHandler> ItemSelected; + public event EventHandler>> ListChanged; + public CompactSupportConceptDC SelectedItem { get @@ -94,6 +96,8 @@ namespace BeWo.View.Controls this.SelectedSupportConcepts.Add(e.Data); this.listBoxSupportConcepts.ScrollIntoView(e.Data); + + FireListChangedEvent(); } } @@ -116,6 +120,7 @@ namespace BeWo.View.Controls this.SelectedSupportConcepts.Add(sc); } } + FireListChangedEvent(); } })); @@ -166,6 +171,15 @@ namespace BeWo.View.Controls if (dc != null) { this.SelectedSupportConcepts.Remove(dc); + FireListChangedEvent(); + } + } + + private void FireListChangedEvent() + { + if (ListChanged != null) + { + ListChanged(this, new EventArgs>(SelectedSupportConcepts)); } } diff --git a/BeWo/View/Detail/Zeiterfassung/ServiceRecordGroupEditView.xaml b/BeWo/View/Detail/Zeiterfassung/ServiceRecordGroupEditView.xaml index e7536b596..f78464cf4 100644 --- a/BeWo/View/Detail/Zeiterfassung/ServiceRecordGroupEditView.xaml +++ b/BeWo/View/Detail/Zeiterfassung/ServiceRecordGroupEditView.xaml @@ -84,6 +84,11 @@ +