Ausgewählte Leistung wird in tätigkeit dargestellt

This commit is contained in:
Husky
2020-04-19 16:29:30 +02:00
parent 91c4344c72
commit 1308d35eab
5 changed files with 50 additions and 10 deletions

View File

@@ -20,6 +20,14 @@ namespace KanSan.UI
/// </summary>
public partial class UCLeistungsverzeichnisPosition : UserControl
{
public event EventHandler SpeichernClicked;
protected virtual void OnSpeichernClicked(EventArgs e)
{
EventHandler handler = SpeichernClicked;
if (handler != null)
handler(this, e);
}
public UCLeistungsverzeichnisPosition(LeistungsverzeichnisPosition leistungsverzeichnisPosition)
{
InitializeComponent();
@@ -30,6 +38,7 @@ namespace KanSan.UI
private void Save_Click(object sender, RoutedEventArgs e)
{
(DataContext as LeistungsverzeichnisPositionViewModel).Speichern();
OnSpeichernClicked(EventArgs.Empty);
}
}
}