Sanierungsmaßnahmen können hinzugefügt werden

This commit is contained in:
Husky
2020-04-05 16:05:24 +02:00
parent 0dda1a4644
commit a48d28ba22
16 changed files with 1008 additions and 4 deletions

View File

@@ -0,0 +1,43 @@
using KanSan.Base.Models;
using KanSan.ViewModel;
using System;
using System.Collections.Generic;
using System.Text;
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 KanSan.UI
{
/// <summary>
/// Interaktionslogik für UCTaetigkeitEdit.xaml
/// </summary>
public partial class UCTaetigkeitEdit : UserControl
{
public event EventHandler SpeichernClicked;
protected virtual void OnSpeichernClicked(EventArgs e)
{
EventHandler handler = SpeichernClicked;
if (handler != null)
handler(this, e);
}
public UCTaetigkeitEdit(Taetigkeiten taetigkeit)
{
InitializeComponent();
this.DataContext = new TaetigkeitEditViewModel(taetigkeit);
}
private void Speichern_Click(object sender, RoutedEventArgs e)
{
(DataContext as TaetigkeitEditViewModel).Speichern();
OnSpeichernClicked(EventArgs.Empty);
}
}
}