Projekte integration angefangen
This commit is contained in:
@@ -20,25 +20,9 @@ namespace KanSan.UI
|
||||
/// </summary>
|
||||
public partial class UCProjektEdit : UserControl
|
||||
{
|
||||
public event EventHandler SpeichernClicked;
|
||||
|
||||
protected virtual void OnSpeichernKlicked(EventArgs e)
|
||||
{
|
||||
EventHandler handler = SpeichernClicked;
|
||||
if (handler != null)
|
||||
handler(this, e);
|
||||
}
|
||||
public UCProjektEdit(Projekt projekt)
|
||||
public UCProjektEdit()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
this.DataContext = new ProjektEditViewModel(projekt);
|
||||
}
|
||||
|
||||
private void Speichern_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
(DataContext as ProjektEditViewModel).Speichern();
|
||||
OnSpeichernKlicked(EventArgs.Empty);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user