using KanSan.Base; using KanSan.Base.Models; using KanSan.ViewModel; using System; using System.Collections.Generic; using System.Diagnostics; 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 { /// /// Interaktionslogik für UCKundeEdit.xaml /// public partial class UCKundeEdit : UserControl { //private Kunde kunde = null; //private UnitOfWork unitOfWork = null; public UCKundeEdit() { InitializeComponent(); this.DataContext = new KundeViewModel(); } private void Speichern_Click(object sender, RoutedEventArgs e) { ((KundeViewModel)DataContext).Speichern(); } } }