diff --git a/Planungsboard.Presentation/UserControls/MenuUserControl.xaml b/Planungsboard.Presentation/UserControls/MenuUserControl.xaml
new file mode 100644
index 0000000..8a45386
--- /dev/null
+++ b/Planungsboard.Presentation/UserControls/MenuUserControl.xaml
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Planungsboard.Presentation/UserControls/MenuUserControl.xaml.cs b/Planungsboard.Presentation/UserControls/MenuUserControl.xaml.cs
new file mode 100644
index 0000000..252123b
--- /dev/null
+++ b/Planungsboard.Presentation/UserControls/MenuUserControl.xaml.cs
@@ -0,0 +1,12 @@
+using System.Windows.Controls;
+
+namespace Planungsboard.Presentation
+{
+ public partial class MenuUserControl : UserControl
+ {
+ public MenuUserControl()
+ {
+ InitializeComponent();
+ }
+ }
+}
\ No newline at end of file
diff --git a/Planungsboard.Presentation/ViewModels/MainViewModel.cs b/Planungsboard.Presentation/ViewModels/MainViewModel.cs
index 35e8d15..4a31933 100644
--- a/Planungsboard.Presentation/ViewModels/MainViewModel.cs
+++ b/Planungsboard.Presentation/ViewModels/MainViewModel.cs
@@ -6,6 +6,7 @@
using System.Windows.Media.Media3D;
using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.CommandWpf;
+using Planungsboard.Presentation.Views;
namespace Planungsboard.Presentation.ViewModels
{
@@ -16,6 +17,7 @@ public MainViewModel()
LoadedCommand = new RelayCommand(LoadedCommandHandling);
QuarterBackCommand = new RelayCommand(QuarterBackCommandHandling);
QuarterNextCommand = new RelayCommand(QuarterNextCommandHandling);
+ NewTeamCommand = new RelayCommand(NewTeamCommandHandling);
this.DisplayQuarters = new List
{
@@ -48,8 +50,6 @@ public MainViewModel()
};
teams.ForEach(team => team.SetColor());
this.Teams = teams;
-
-
}
private void QuarterNextCommandHandling()
@@ -75,6 +75,14 @@ private void QuarterNextCommandHandling()
this.DisplayQuarters = newQuarterList;
}
+ private void NewTeamCommandHandling()
+ {
+ var newEntityWindows = new NewGenericEntityWindows();
+ newEntityWindows.ShowDialog();
+
+ this.Teams.Add(newEntityWindows.Instance);
+ }
+
private void QuarterBackCommandHandling()
{
var newQuarterList = new List();
@@ -134,6 +142,8 @@ public double TeamLabelWidth
public RelayCommand QuarterNextCommand { get; set; }
public RelayCommand QuarterBackCommand { get; set; }
+ public RelayCommand NewTeamCommand { get; set; }
+
#endregion
#region Commands Handling
diff --git a/Planungsboard.Presentation/Views/MainWindow.xaml b/Planungsboard.Presentation/Views/MainWindow.xaml
index 911855d..3344c4d 100644
--- a/Planungsboard.Presentation/Views/MainWindow.xaml
+++ b/Planungsboard.Presentation/Views/MainWindow.xaml
@@ -26,7 +26,15 @@
-
+
+
+
+
+
+
+
+
+
@@ -64,7 +72,7 @@
-
+
@@ -129,6 +137,7 @@
+
@@ -138,4 +147,5 @@
+
\ No newline at end of file
diff --git a/Planungsboard.Presentation/Views/MainWindow.xaml.cs b/Planungsboard.Presentation/Views/MainWindow.xaml.cs
index 6ad1a7e..6b1c348 100644
--- a/Planungsboard.Presentation/Views/MainWindow.xaml.cs
+++ b/Planungsboard.Presentation/Views/MainWindow.xaml.cs
@@ -26,7 +26,7 @@ public MainWindow()
InitializeComponent();
}
- private void FrameworkElement_OnSizeChanged2(object sender, SizeChangedEventArgs e)
+ private void FrameworkElement_OnSizeChanged(object sender, SizeChangedEventArgs e)
{
var grid = sender as Grid;
var firstColumn = grid.ColumnDefinitions.FirstOrDefault();
diff --git a/Planungsboard.Presentation/Views/NewEntityWindows.xaml b/Planungsboard.Presentation/Views/NewEntityWindows.xaml
new file mode 100644
index 0000000..59e3c45
--- /dev/null
+++ b/Planungsboard.Presentation/Views/NewEntityWindows.xaml
@@ -0,0 +1,12 @@
+
+
+
+
+
diff --git a/Planungsboard.Presentation/Views/NewEntityWindows.xaml.cs b/Planungsboard.Presentation/Views/NewEntityWindows.xaml.cs
new file mode 100644
index 0000000..90df365
--- /dev/null
+++ b/Planungsboard.Presentation/Views/NewEntityWindows.xaml.cs
@@ -0,0 +1,37 @@
+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 Planungsboard.Presentation.Views
+{
+ ///
+ /// Interaktionslogik für NewEntityWindows.xaml
+ ///
+ public partial class NewEntityWindows : Window
+ {
+ public NewEntityWindows()
+ {
+ InitializeComponent();
+ }
+
+ }
+
+ public class NewGenericEntityWindows : NewEntityWindows
+ {
+ public NewGenericEntityWindows()
+ {
+
+ }
+
+ public T Instance { get; set; }
+ }
+}