/src/EntityConnector/MainWindow.xaml.cs
C# | 47 lines | 39 code | 5 blank | 3 comment | 0 complexity | f89eb226f8ba7a1f425e2f4d8aeb0be6 MD5 | raw file
- using System;
- using System.Collections.Generic;
- using System.Linq;
- 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;
- using BurnSystems.EntityConnector;
-
- namespace EntityConnector
- {
- /// <summary>
- /// Interaktionslogik für MainWindow.xaml
- /// </summary>
- public partial class MainWindow : Window
- {
- public MainWindow()
- {
- InitializeComponent();
- }
-
- private void Button_Click(object sender, RoutedEventArgs e)
- {
- var pool = new EntityPool("TestPool", "Server=.\\SQLEXPRESS;Database=mb_entity;Trusted_Connection=True;");
-
- var entity = new Entity();
- entity["Vorname"] = "Martin";
- entity["Nachname"] = "Brenn";
- entity["Alter"] = 30.ToString();
-
- pool.Add(entity);
- }
-
- private void OpenPool_Click(object sender, RoutedEventArgs e)
- {
- var dlg = new ShowPool();
- dlg.Owner = this;
- dlg.Show();
- }
- }
- }