ObjekteListe angefangen
This commit is contained in:
34
KanSan/UI/Objekte/FrmNewObjekt.xaml.cs
Normal file
34
KanSan/UI/Objekte/FrmNewObjekt.xaml.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using KanSan.Base.Models;
|
||||
using KanSan.ViewModel.Objekte;
|
||||
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.Shapes;
|
||||
|
||||
namespace KanSan.UI
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaktionslogik für FrmNewObjekt.xaml
|
||||
/// </summary>
|
||||
public partial class FrmNewObjekt : Window
|
||||
{
|
||||
public FrmNewObjekt(Baustelle baustelle)
|
||||
{
|
||||
InitializeComponent();
|
||||
this.DataContext = new ObjekteAddViewModel(baustelle);
|
||||
}
|
||||
|
||||
private void Speichern_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
(DataContext as ObjekteAddViewModel).Hinzufügen();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user