diff --git a/Client/Model.cs b/Client/Models/Model.cs
similarity index 100%
rename from Client/Model.cs
rename to Client/Models/Model.cs
diff --git a/Client/ViewModel.cs b/Client/ViewModels/ViewModel.cs
similarity index 100%
rename from Client/ViewModel.cs
rename to Client/ViewModels/ViewModel.cs
diff --git a/Client/ViewModels/ViewModelGame.cs b/Client/ViewModels/ViewModelGame.cs
new file mode 100644
index 0000000..831253b
--- /dev/null
+++ b/Client/ViewModels/ViewModelGame.cs
@@ -0,0 +1,16 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Text;
+
+namespace Client.ViewModels
+{
+ class ViewModelGame : INotifyPropertyChanged
+ {
+ public event PropertyChangedEventHandler PropertyChanged;
+
+
+
+
+ }
+}
diff --git a/Client/Views/GameWindow.xaml b/Client/Views/GameWindow.xaml
new file mode 100644
index 0000000..5998e63
--- /dev/null
+++ b/Client/Views/GameWindow.xaml
@@ -0,0 +1,51 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Client/Views/GameWindow.xaml.cs b/Client/Views/GameWindow.xaml.cs
new file mode 100644
index 0000000..641e3e4
--- /dev/null
+++ b/Client/Views/GameWindow.xaml.cs
@@ -0,0 +1,73 @@
+using Client.ViewModels;
+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.Shapes;
+
+namespace Client.Views
+{
+ ///
+ /// Interaction logic for GameWindow.xaml
+ ///
+ public partial class GameWindow : Window
+ {
+ public GameWindow()
+ {
+ DataContext = new ViewModelGame();
+ InitializeComponent();
+ }
+ Point currentPoint = new Point();
+
+ private void CanvasForPaint_MouseDown(object sender, MouseButtonEventArgs e)
+ {
+ if (e.ButtonState == MouseButtonState.Pressed)
+ {
+ currentPoint = e.GetPosition(CanvasForPaint);
+ }
+
+ }
+
+ private void CanvasForPaint_MouseMove(object sender, MouseEventArgs e)
+ {
+ if (e.LeftButton == MouseButtonState.Pressed)
+ {
+ Line line = new Line();
+
+ line.Stroke = SystemColors.WindowFrameBrush;
+ line.X1 = currentPoint.X;
+ line.Y1 = currentPoint.Y;
+ line.X2 = e.GetPosition(CanvasForPaint).X;
+ line.Y2 = e.GetPosition(CanvasForPaint).Y;
+
+ currentPoint = e.GetPosition(CanvasForPaint);
+
+ CanvasForPaint.Children.Add(line);
+ }
+
+ }
+
+ private void CanvasReset_Click(object sender, RoutedEventArgs e)
+ {
+ CanvasForPaint.Children.Clear();
+
+
+ //FOR FUTURE USE, IF NECCESSARY
+ //TEST.Children.Clear();
+
+ //foreach (UIElement child in CanvasForPaint.Children)
+ //{
+ // var xaml = System.Windows.Markup.XamlWriter.Save(child);
+ // var deepCopy = System.Windows.Markup.XamlReader.Parse(xaml) as UIElement;
+ // TEST.Children.Add(deepCopy);
+ //}
+
+ }
+ }
+}
diff --git a/Client/MainWindow.xaml b/Client/Views/MainWindow.xaml
similarity index 73%
rename from Client/MainWindow.xaml
rename to Client/Views/MainWindow.xaml
index 5606707..cfaf897 100644
--- a/Client/MainWindow.xaml
+++ b/Client/Views/MainWindow.xaml
@@ -34,10 +34,10 @@
-
+
-
+
@@ -47,6 +47,8 @@
+
+
@@ -59,8 +61,15 @@
-
-
-
+
+
+
+
+
+
+
+
+
+
diff --git a/Client/MainWindow.xaml.cs b/Client/Views/MainWindow.xaml.cs
similarity index 55%
rename from Client/MainWindow.xaml.cs
rename to Client/Views/MainWindow.xaml.cs
index 87700ee..43f75ee 100644
--- a/Client/MainWindow.xaml.cs
+++ b/Client/Views/MainWindow.xaml.cs
@@ -1,4 +1,5 @@
-using System;
+using Client.Views;
+using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@@ -24,5 +25,20 @@ namespace Client
{
InitializeComponent();
}
+
+ private void Button_Click(object sender, RoutedEventArgs e)
+ {
+
+ Lobby lobbySelected = LobbyList.SelectedItem as Lobby;
+ if(lobbySelected != null)
+ {
+ testLabel.Content = lobbySelected.ID;
+ usernameTextbox.IsEnabled = false;
+ colorSelection.IsEnabled = false;
+ GameWindow window = new GameWindow();
+ window.Show();
+ }
+
+ }
}
}