Schriftgröse geändert
Projekte können nun ausgewählt werden
This commit is contained in:
44
KanSan/UI/Projekt/UCProjektEdit.xaml.cs
Normal file
44
KanSan/UI/Projekt/UCProjektEdit.xaml.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
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 UCProjektEdit.xaml
|
||||
/// </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)
|
||||
{
|
||||
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